Posts

Install and configure SonarQube on CentOS 7

Introduction S onarQube is an open-source platform for continuous inspection of code quality. It is used to perform automatic reviews with static analysis of code to detect bugs, code smells, and security vulnerabilities on more than 20 programming languages. Platform notes If you're running on Linux, you must ensure that: vm.max_map_count is greater or equals to 262144   fs.file-max is greater or equals to 65536   the user running SonarQube can open at least 65536 file descriptors   the user running SonarQube can open at least 4096 threads vim /etc/sysctl.d/90-sonarqube.conf vm.max_map_count=262144 fs.file-max=65536 vim /etc/security/limits.conf sonarqube - nofile 65536 sonarqube - nproc 4096 Install OpenJDK yum install -y java-11-openjdk Set Default JDK update-alternatives --config java There is 1 program that provides 'java'. Selection Command ----------------------------------------------- *+ 1 java-11-

Convert install.esd to install.wim at Windows 10

Image
1.  From the Windows installation media,  copy  the  install.esd  file from the "sources" folder (e.g. X:\sources\install.esd) to the  root  folder of  drive C:  * * Note:   If you are using an ISO Image file, first  mount  it to Windows. If you are using Windows 8/8.1, then read this article:  How to mount ISO files. 2.   Right click at  Start  menu   and select  Command Prompt (Admin). 3.  Type  cd\  to go to the root folder of drive C:\ 4.  Then type the following command and press  Enter , in order to find which images are in the "install.esd" file: dism /Get-WimInfo /WimFile:install.esd 5.  According to your Windows 10 installed version take note of the index number. * * e.g.: If you have installed the Windows 10 Home N edition on your system, then the Index number is "2". 6.  Then give the command below to extract the corresponding to your Windows version "install.wim" file (Index number): * dism /export

Running Ansible on Windows 10

Install Ansible As previous blog have mention about Windows Subsystem for Linux, and we have Ubuntu environment. It's as simple as installing pip, then installing ansible: 1. Open a bash prompt (press windows button + R, type 'bash' and hit enter) bash 2. Install pip sudo apt-get -y install python-pip python-dev libffi-dev libssl-dev 3. Install ansible sudo pip install ansible Using Ansible As this point, 'which ansible' should show the path to Ansible which ansible ansible version should show you ansible's version ansible --verison

Windows 10's Subsystem for Linux

Image
Every since I heard about the new "Beta" Windows Subsystem for Linux, which basically installs an Ubuntu LTS release inside of Windows 10. I've been meaning to give it a spin, and see if can be a worthy replacement for Cygwin. Before installing any Linux distros for WSL ( Windows Subsystem for Linux), you must ensure that the " Windows Subsystem for Linux " optional is enabled. 1, Open PowerShell as Administrator and run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 2. Restart your computer when prompted. Install your Linux Distribution of Choice To download and install your preferred distro(s), you have three choices: 1. Download and install from the Microsoft Store (see below) 2. Download and install from the Command-Line/Script ( read the manual installation instruction ) 3. Download and manually unpack and install (for Windows Server - instructions here ) Windows 10 Fall Creators Update and l

Ansible AWX with Docker on CentOS 7

Image
Introduction of AWX Ansible AWS is the Open Source version of ansible tower. AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is the upstream project for Ansible Tower, a commercial derivative of AWX. System Requirements for AWX Server At least 2 cpu cores. At least 4GB RAM > 20GB of Hard Disk Size Check SELinux configuration sestatus Result: [root@awx ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: permissive Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 [root@awx ~]# Disbled firewalld [root@awx installer]# systemctl stop firewalld [root@awx installer]# systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.want

Join CentOS 7 into Active Directory using realm and sssd

Image
Introduction to SSSD and Realmd   Staring from Red Hat 7 and CentOS 7, SSSD or 'System Security Services Daemon' and realm have been introduced. SSSD's main function is to access a remote identity and authentication resource through a common framework that provides caching and offline support to the system. SSSD provides PAM ans NSS integration and a database to store local users, as well as core and extended user data retrieved from a center server. The main reason to transition from winbind to sssd is that sssd can be used for both direct and indirect integration and allows to switch from one integration approach to another without significant migration costs. The most convenient way to configure SSSD or winbind in order to directly integrate a Linux system with AD is use the realm service. Because it allows callers to configure network authentication and domain membership in a standard way. The realm service automatically discovers information about accessib