Obtaining software directly from the source code is a common procedure on Unix computers, and generally involves the following three steps: configuring the makefile, compiling the code, and finally installing the executable to standard locations. In order to work with Node.js in Kali Linux, it's recommendable to follow the mentioned process as it's easier than other solutions.Although Python is prefered when working with Kali Linux, both of the programming languages (Python and JavaScript) have the same end goals. There is no right or wrong decision for adopting which platform is best suited to you, therefore if you want to work with JavaScript instead of Python don't feel bad about that. Besides, Node can be utilized in the broad range of modules, that means that you can use Python in your Node.JS application and viceversa.Let's get started with the installation! NoteYou may get a warning like 'dpkg was interrupted, you must manually run ' sudo dpkg -configure -a' to correct the problem'. You just need, as mentioned, execute sudo dpkg -configure -a to solve it and then proceed with the command again.Besides, if you are unable to install the checkinstall package (happens usually on recent installations of Kali Linux), proceed with. Create a temporary folderYou should create a temporary folder to generate the.deb package of Node.js.
You can create it using mktemp, to make it with a single command execute the following instruction: src=$(mktemp -d) && cd $srcThe -d argument indicates that mktemp should make a directory instead of a file. In this command we are creating a variable that contains the generated temporary path by mktemp and then switching to that directory in the terminal.
Download and extract Node.jsDownload the distributable code of Node.js executing the following command in the terminal: wget -N the download finishes, extract the content of the tar file with the following command: tar xzvf node-latest.tar.gz && cd node-v.This should create a folder with the preffix node-v that will vary according to the downloaded version of Node.js. Run configure scriptA configure script is an executable script designed to aid in developing a program to be run on a wide number of different computers. It matches the libraries on the user's computer, with those required by the program before compiling it from its source code. Run the configure script with the following command:./configure 5. Create Node.deb package compiling the codeTo create our installable package of Node.js we are going to use CheckInstall for it. CheckInstall keeps track of all the files created or modified by your installation script and builds a standard binary package (.deb,.rpm,.tgz). CheckInstall is really useful if you've got a tarball with software that you have to compile (exactly what we're doing in this moment).To create the package of Node.js execute the following command: sudo fakeroot checkinstall -y -install=no -pkgversion $(echo $(pwd) sed -n -re's/.+node-v(.+)$/1/p') make -j$(($(nproc)+1)) installNote that for most useful actions, checkinstall must be run as root.
Installing TheFatRat in Kali Linux Along With Installing Missing Packages. What is TheFatRat? Thefatrat a massive exploiting tool revealed An easy tool to generate backdoor and easy tool to post exploitation attack like browser attack,dll. We’ve shown the steps down below to install Kali Linux on USB using Rufus. Download the Rufus tool. Make sure USB is plugged into your PC/laptop. In the device selection, select your USB device. Set the partition scheme as a GPT partition scheme for UEFI. The file system should be FAT32. Set cluster size to 16KB.
We'll use fakeroot because as you may know, for security reason, it is a good idea to avoid doing as root everything that could be done as normal user, even if you can run sudo because it is your machine.The command should start to compile Node.js and it will take a while, so relax, get a cola and wait. Install Node generated packageOnce the package is compiled, in the output of the previous step, you should receive a message that specifies the name of the generated.deb package:In this case, the name of our package is node7.7.2-1amd64.deb, now we just need to install it using dpkg executing the following command.
NoteRemember to replace the value of the i argument with the name of the generated package in the previous step. Sudo dpkg -i node generated package name.deb# Example: sudo dpkg -i node7.7.2-1amd64.debWait till the installation finishes and that's it, you can now work with Node.js in Kali Linux without problems.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |