Posts

Showing posts from April, 2022

Enable WIFI ADAPTER Monitor Mode in Kali Linux

Connect the WIFI adapter and add it in VirtualBox USB Settings TP-Link TL-WN725N 150Mbps Wireless N Nano USB Adapter https://www.amazon.in/gp/product/B008IFXQFU Check the Adapter Chippet lsusb Bus 001 Device 002 : ID 2357 : 0109 TP-Link TL-WN823N v2 / v3 [Realtek RTL8192EU] Bus 001 Device 001 : ID 1 d6b: 0002 Linux Foundation 2 . 0 root hub Bus 002 Device 002 : ID 80 ee: 0021 VirtualBox USB Tablet Bus 002 Device 001 : ID 1 d6b: 0001 Linux Foundation 1 . 1 root hub Find Appropriate Driver for Realtek RTL8192EU from GitHub https://github.com/clnhub/rtl8192eu-linux Install the dependencies sudo apt install linux-headers-generic build-essential dkms git Clone the Driver git clone https://github.com/clnhub/rtl8192eu-linux.git Configure the Architecture and Monitor Mode Open MakeFile in Text Editor or Nano If you're using a different architecture than x86, the set (MakeFile) CONFIG_PLATFORM_I386_PC = n set your architecture CONFIG_PLATFORM_ARM_AARCH64

Setting up the Java, JavaFX, and Servlet Environment

Setting up the Java environment in your favorite operating system is really a challenging task when you develop Java Servlet and JavaFX applications. This tutorial explains how to install and setup the Java environment in your Windows operating system. you can use the all in one openJDK called Librica JDK from BellSoft for developing Java FX and other Java applications. Installing Java and JavaFX Bellsoft Librica JDK supports Java and JavaFX out of the box. You can directly download and install from the following URL  https://download.bell-sw.com/java/17.0.3+7/bellsoft-jdk17.0.3+7-windows-amd64-full.msi If you are downloading from the Bellsoft website, ensure that you are downloading Stable LTS and Full JDK Install Visual Studio (VS) Code Editor VS Code is lightweight editor for developing most of the popular programming languages Java Extension Pack can be installed in VS Code for Java Development Download and Install VS Code for developing Java Projects https://code.visualstudio.

Convert Source Code tar.gz , tar.bz2 or rpm files into deb Package

Developer can easily convert the source code into distribution based package format. These packages are easy installable and configurable . There are two package types used in all Linux distribution deb package [ Debian based Package ] rpm package [ Redhat Package Manager] Debian, Ubuntu, Gentoo, and other Debian based OS are using DEB package,  Redhat, Fedora, CentOS are using RPM package. The conversion between rpm based package to deb package is given in this article. The tool " alien " is used for doing this job. Step 1: Install alien #sudo apt-get install  alien Step 2:  Convert tar.gz to deb #sudo alien /opt/eclipse-helios.tar.gz This command  will create eclipse-helios.deb package in /opt directory. Step 3: Convert rpm to deb #sudo alien ffmpeg-0.6-3.fc13.i686.rpm

How to use JShell in Java?

JSHELL is the command line tools for Read/Evaluate/Print/Loop (REPL) Java Statements. It can be used for learning Java Concepts. The Java Statements executed in JSHELL is called as Snippets. To run, type jshell in Terminal/Command Window. Minimum Java Version? Minimum JDK9 version is required to use JSHELL JSHELL Commands /help - Getting help /exit - Exit JSHELL /list - List ALL Snippets /edit - Edit Snippet in Editor /save - Save Snippets into File /vars - List variables /imports - List imported packages /reset - Reset the current session Ctrl+l - Clear the Screen Ctrl+C - To exit from the current snippet Use as Calculator (Java Operators Demo) 10 + 20 100 * 3863 Create a String String str = "Hello" ; str .toUpperCase() str .length() Create a List Creatigng a Simple List Getting Dynamic Help of a Method (Press Tab after typing Char(s)) List.of() vs Arrays.asList() var myList = Arrays.asList( 4 , 5 , 3 , 1 , 2 ); myList.sort(Comparator