Posts

Showing posts with the label Linux

Kali Linux in Docker Container in Windows 10

Image
Background Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Docker is a great alternative to virtualization when dealing with various tools or for creating isolated environments. Docker is lightweight. Offensive Security has created an official Kali Linux Docker image named kalilinux/kali-rolling , which we’ll be using below. Install Docker Go to the following link and install Docker  -  https://docs.docker.com/docker-for-windows/install/ Setting up a Kali Linux Docker Image Pull the Kali Linux image using following command -  docker pull kalilinux/kali-rolling Running Kali  Run Kali using following command -  docker run -t -i kalilinux/kali-rolling /bin/bash First Things First The first thing we need to do is to update Kali packages and install the tools we’ll be using. Run following commands in Kali shell -  apt update apt dist-upgrade apt autoremove apt clean We can now run any Linux command in...

3 WAYS TO START A LOCAL WEB SERVER IN LINUX

Image
When a web developer develops a website, he needs to see how it will work on the end-user side. But a question comes in mind- "What is the need of a web server if we can see the HTML files in the web browser?" The answer is- what if we need to test the dynamic content, so we need to setup a local web server. This can be accomplished very easily on Windows, macOS and Linux. But today we will see 3 ways to setup a local web server in Linux.  NOTE ::  Steps being used are almost similar to use on other operating systems. Do some research on your own also.  Following servers can also be opened on other machines in the same network. FIRST WAY- Using apache2  Apache is open-source web-server software that powers much of the web today. It is maintained by apache-http-project .  Steps to follow :: Step 1: Open Terminal Step 2: Check if it is installed or not (mostly, already installed). If not, use the following comman...

Introduction to Linux

Image
Before we start learning Linux, let’s first understand- What is an Operating System? Every time you switch on your computer, you see a screen where you can perform different activities like writing something, browse the Internet or watch a video. But, have you ever thought- how does the computer know that you are asking it to run a mp4 file (video)? The answer is: Operating System (or the kernel), which does this work. A kernel is a program at the heart of any operating system that takes care of fundamental stuff, like letting hardware communicate with software. So, to work on your computer, you need an Operating System (OS). In fact, right now you are using one of the popular OS's like Windows, macOS, or Linux, as you read this blog on your computer. However, here we will learn what Linux is and what benefits it offers over other OS's available. What is Linux? Just like Windows and macOS , Linux is an operating system. In fact, one of the most popular platfor...