Category Archives: LFCE

Install Jenkins in Linux behind Nginx as Reverse Proxy

Install Nginx: Reference: https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Nginx Setup Jenkins: Install Jenkins: Setup Jenkins user: Add firewall rule: Configure Jenkins:  Jenkins configs: Jenkins CLI: Jenkins inside Docker: Configure Docker with Jenkins: Configure Git with Jenkins:   Advertisements

Posted in Jenkins, LFCE, LFCS, Linux, Nginx

Version Control Systems

Git setup: Required: General: Windows: Github repository clone to local directory: Add local repository to Github: Add/Remove/Commit: Checkout/Push/Merge: Store credentials: Script: SVN setup: Install SVN: Basic commands:

Posted in git, LFCE, LFCS, Linux, svn

Setup Cntlm proxy in Linux

Setup proxy in CentOS 7: Setup corporate proxy: Setup cntlm:   Setup proxy in Ubuntu: Setup corporate proxy: Setup cntlm: Common Issues: CentOS7 /var/log/messages: cntlm[8976]: Error creating a new PID file: Windows 10: Couldn’t start Cntlm service: Open regedit.exe and go … Continue reading

Posted in cntlm, LFCE, LFCS, Linux

Docker basics

Linux containers are implemented through a combination of three kernel features: namespaces for isolation, control groups for resource control, and SELinux for security. Docker is used to create, control and manage containers. When a container is started, a read-write layer for that … 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   192.168.254.132/24(rw)   192.168.254.0/24(ro) Restart and enable nfs and … Continue reading

Posted in LFCE, LFCS