Category Archives: LFCE

Jenkins behind an Nginx Reverse Proxy

Setup Nginx: yum install nginx vim /etc/nginx/nginx.conf location / { sendfile off; proxy_pass http://localhost:8080; proxy_redirect default; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_max_temp_file_size 0; #this is the maximum upload size client_max_body_size 10m; … Continue reading

Posted in Jenkins, LFCE, LFCS, Linux, Nginx

Basic git commands

Install and setup: Required: yum install git && git –version git config [–global] “user” git config [–global] “user@localhost” General: git config –global credential.helper “cache –timeout=28800” git config –global core.excludesfile /etc/gitignore git config –global http.postBuffer 524288000 git config –global … Continue reading

Posted in git, LFCE, LFCS, Linux

Setup Cntlm proxy in CentOS

Download and Install: curl -o /tmp/cntlm.rpm sudo rpm -ivh /tmp/cntlm-*.rpm Configure: cntlm -H -d domain1 -u user1 sudo vi /etc/cntlm.conf Username user1 Domain domain1 PassNTLMv2   11112345325gsdg4535435    (Use this value from step#1) Proxy Listen Listen sudo cntlm … Continue reading

Posted in cntlm, LFCE, LFCS, Linux

Docker and Kubernets basics

Virtual machines are an abstraction of physical hardware, where hypervisor allow multiple VMs running on the same server. Whereas, Containers are a further level of abstraction on application layer (OS), it packages code and dependencies together. A Linux Container is a lightweight … Continue reading

Posted in docker, LFCE, LFCS

tmux and screen basic commands

tmux: tmux | tmux new -s “mysession”          (Start a new session) tmux ls                       (List sessions) ctrl+b d | exit            (Detach or … Continue reading

Posted in LFCE, LFCS, Linux, Other

Firewalld and iptables commands

i) firewall-cmd (iptables): yum install  firewalld  firewall-config systemctl status|start|stop|enable|disable firewalld firewall-cmd –state firewall-cmd –reload firewall-cmd –list-all | –list-ports firewall-cmd –panic-on |–panic-off    (Block all incoming or outgoing traffic) zones: firewall-cmd  –get-zones|–get-default-zone|–get-active-zone firewall-cmd  –set-default-zone=trusted  [–permanent]  services: firewall-cmd –list-services firewall-cmd –add-service=ftp         [–permanent]  [–zone=public] … Continue reading

Posted in LFCE, LFCS, Linux

Setup NFS and Samba servers in Linux

i) NFS server setup: yum install nfs-utils Create a shared directory and assign appropriate permission: mkdir   -m 777 /nfs   (All users have read,write and execute access) chown  nfsnobody:nfsnobody  /nfs Enter the following into /etc/exports: /nfs Restart and enable nfs and … Continue reading

Posted in LFCE, LFCS