Author: Sahil Suri

npm package manager – install and use on Centos 7

Introduction Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. JavaScript is a client-side programming language, which means it’s processed within the user’s browser. With the advent of Node.js, JavaScript can also be used as a server-side language. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and more feature rich. The name npm is often referred to as an acronym for node package manager though it isn’t official. The npm tool allows users to connect to an online repository containing all the Node.js programs, plugins, modules etc to facilitate easy installation of different programs. In this article, we will explain how to install and use npm, a Node.js package management system, to manage Node.js packages on your system. We’ll be using a centos 7 system for the purpose of this demonstration.   Install npm Both npm and nodejs are available in the EPEL repository. So if you have the EPEL repository enabled then you may simply use yum to install the npm package manager tool as we do in the below example. [root@linuxnix ~]# yum install npm Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 epel/x86_64/metalink | 6.5 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 puppetlabs-pc1 | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): puppetlabs-pc1/x86_64/primary_db | 135...

Read More

Understanding namespaces and cgroups in Linux

Introduction Namespaces and cgroups are the building blocks on which the foundation of containers has been laid. In this post, we will explore what are namespaces and cgroups along with brief descriptions of their various types.   What is a namespace? You may consider a namespace as a global system wrapper. It means it takes a global system resource like a mount point and it provides a wrapper around it that makes it look to the process living in that namespace like it has its own isolated instance of that resource. Namespaces allow the partitioning of kernel resources ensuring that one set of processes sees only the resources allocated to it while another set of processes sees only the resources allocated to it. Sometimes namespaces and cgroups are referenced interchangeably but this is not accurate. simply put, namespaces limit what resources a process or a set of processes can see whereas cgroups limit what resources a process or a set of processes can use. There are six different types of namespaces described below: User namespace: This is a key security feature as each namespace can be given its own distinct set of user ids and group ids. It allows a process to have a PID of 1 inside a container and a PID of 2000 inside the host system. In fact, user namespaces can be nested up to 32...

Read More

Bind DNS server setup on Centos 7

Introduction In one of our earlier articles we demonstrated how to configure a caching only DNS server. In this article we will be explaining the step by step process of configuring a DNS server using bind. Along with the DNS server configuration we will also be explaining some DNS related terms like domains, TLDs and sub domains before we get to the actual configuration. What are domains or domain names? When we connect to a website using its name, we type the FQDN (Fully Qualified Domain Name) or the domain name like this: linuxnix.com or www.google.com Each domain consists of domain components and the dot separates or delimits these components. In case of www.google.com, the text com is the top-level domain component and google is the second-level domain component and www is the third-level domain component Top Level Domain Names (TLDs) Top level domains (TLDs) are divided into categories based on geographical or functional aspects. In case of www.google.com, com is the top level domain. At present there are over than 800 top level domains on the web. The top level domains categories are: Generic top-level domain like (.org, .com, .net, .gov, .edu and so on). Country-code top-level domains like (.us, .ca and so on) corresponding to the country codes for the United States and Canada respectively. New branded top-level domains like (.linux, .microsoft, .companyname and so on). Infrastructure...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.