VSCode a.k.a
In this short tutorial shows how to install Visual Studio Code on Linux and the new version of kali linux 2021.2 version have alread installed visual studio code on that linux. visual studio code install in linux version 2021.2
Visual Studio Code is one of top IDEs for Python.
Visual Studio Code is an open source IDE developed by Microsoft which is available for Linux. It offers many interesting features like:
Syntax highlight
Code completion
Version control
IntelliSense
marketplace
Developer Community
Install Visual Studio Code
VSCode a.k.a. Visual Studio Code Open Source (“Code-OSS”) - Code editor
VSCode have been included into the kali-linux-large metapackage, so they are included on the installer image for people doing a fresh install. Otherwise you will need to upgrade Kali (if you already have the kali-linux-large install) or manually install them (if you want them!):
sudo apt update && sudo apt install -y code-oss
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop]
└─$ sudo apt update && sudo apt install -y code-oss
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop]
└─$
┌──(hackerboy㉿KumarAtulJaiswal)-[~]
└─$ sudo apt-get install code-oss
[sudo] password for hackerboy:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
autopoint debugedit dh-autoreconf dh-strip-nondeterminism dwz kbuild libarchive-cpio-perl libdebhelper-perl
libfile-stripnondeterminism-perl libmail-sendmail-perl librpmbuild9 librpmsign9 libsub-override-perl libsys-hostname-long-perl
linux-headers-5.9.0-kali5-amd64 linux-headers-5.9.0-kali5-common linux-image-5.9.0-kali5-amd64 linux-kbuild-5.9
python3-distro-info python3-software-properties rpm unattended-upgrades
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libjs-highlight.js libnode72 nodejs nodejs-doc
Suggested packages:
npm
The following NEW packages will be installed:
code-oss libjs-highlight.js libnode72 nodejs nodejs-doc
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 85.9 MB of archives.
After this operation, 321 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.harukasan.org/kali kali-rolling/main amd64 libnode72 amd64 12.21.0~dfsg-3 [8,382 kB]
Get:2 http://ftp.harukasan.org/kali kali-rolling/main amd64 nodejs amd64 12.21.0~dfsg-3 [146 kB]
Get:3 http://ftp.harukasan.org/kali kali-rolling/main amd64 code-oss amd64 1.56.1-0kali2 [74.4 MB]
Get:4 http://ftp.harukasan.org/kali kali-rolling/main amd64 libjs-highlight.js all 9.18.5+dfsg1-1 [397 kB]
Get:5 http://ftp.harukasan.org/kali kali-rolling/main amd64 nodejs-doc all 12.21.0~dfsg-3 [2,538 kB]
Fetched 85.9 MB in 7min 47s (184 kB/s)
Selecting previously unselected package libnode72:amd64.
(Reading database ... 416536 files and directories currently installed.)
Preparing to unpack .../libnode72_12.21.0~dfsg-3_amd64.deb ...
Unpacking libnode72:amd64 (12.21.0~dfsg-3) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_12.21.0~dfsg-3_amd64.deb ...
Unpacking nodejs (12.21.0~dfsg-3) ...
Selecting previously unselected package code-oss.
Preparing to unpack .../code-oss_1.56.1-0kali2_amd64.deb ...
Unpacking code-oss (1.56.1-0kali2) ...
Selecting previously unselected package libjs-highlight.js.
Preparing to unpack .../libjs-highlight.js_9.18.5+dfsg1-1_all.deb ...
Unpacking libjs-highlight.js (9.18.5+dfsg1-1) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../nodejs-doc_12.21.0~dfsg-3_all.deb ...
Unpacking nodejs-doc (12.21.0~dfsg-3) ...
Setting up libnode72:amd64 (12.21.0~dfsg-3) ...
Setting up libjs-highlight.js (9.18.5+dfsg1-1) ...
Setting up nodejs (12.21.0~dfsg-3) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up nodejs-doc (12.21.0~dfsg-3) ...
Setting up code-oss (1.56.1-0kali2) ...
Processing triggers for doc-base (0.11.1) ...
Processing 1 added doc-base file...
Processing triggers for libc-bin (2.31-12) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for shared-mime-info (2.0-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for kali-menu (2021.2.3) ...
Processing triggers for desktop-file-utils (0.26-1) ...
┌──(hackerboy㉿KumarAtulJaiswal)-[~]
└─$
For open visual studio code, it is simple, simply type vscode in terminal and hit enter but here is a problem if you exit the terminal your VS code will be terminated but how do fixed it!!!
How to set VS code in Panel
So now we will see some steps, with the help of which we will be able to set up VS Code in the Linux panel.
Step 1 - Open panel preferences
Step 2 - add some launcher so click on add button
Step 3 - select launcher and add it..
Step 5 - As you can see the launcher has been created
Step 6 - Double click on the launcher, after that a box will open next to you, in which you have to click on the plus icon.
Step 7 -Then we find a VS code installation file, so simple type "locate vscode" and as you can see /home/hackerboy/.vscode file, copy this (There may be a different directory in your case). NOTE - this is optional.
Step 8 - Then, add Name, command and working directory and add icon
Name - visual studio code ( you can change )
Command - vscode (not change)
Working Directory - /home/hackerboy/.vscode (There may be a different directory in your case).
Icon - Click Here
Create.
Step 9 - You can easily open it whenever you want
Customization
Before running the program in Visual Code, we will do some setting which will help you a lot in automation means to run the code smoothly. for example
IDE :- python, c/c++ ✅
Code runner :- clear previous output ✅
Code runner :- run in terminal ✅
Code runner :- save file before run ✅
Click on extension section
Search code runner and install them
then go to setting option and in user simple search code runner
Then tick mark on -
clear previous output ✅
Code runner :- run in terminal ✅
Code runner :- save file before run ✅
so as you can after installing IDE (IDE already installed in VS code) as you can see our c++ program is running.
Vola!!!
A few notes about code-oss (aka VSCode): (credit kali linux)
- We are compiling this from source, rather than using the pre-built binaries
- The upside to this is that telemetry data is disabled by default
- The downside is that some aspects of the marketplace may not work. If you find these limitations a problem, you may wish to uninstall the Kali package and switch to the VSCode pre-built binaries
You also may question why it was named code-oss, rather than code
- Code-OSS is what the source-code calls itself, which is used as the base before the configurations are applied for the pre-compiled binaries that gets distributed as “code”.
- As we are using the source-code, we used the variables defined by it.
- The two different names help to distinguish the differences between them (also prevents any clashes and conflicts!).
- We also included various aliases in our package to help bridge between the two different versions. Meaning, calling vscode and code will use our package, code-oss, with a friendly notice (when installed).
Disclaimer
This was written for educational purpose and pentest only.
The author will not be responsible for any damage ..!
The author of this tool is not responsible for any misuse of the information.
You will not misuse the information to gain unauthorized access.
This information shall only be used to expand knowledge and not for causing malicious or damaging attacks. Performing any hacks without written permission is illegal ..!
All video’s and tutorials are for informational and educational purposes only. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. We believe that it is impossible to defend yourself from hackers without knowing how hacking is done. The tutorials and videos provided on www.hackingtruth.in is only for those who are interested to learn about Ethical Hacking, Security, Penetration Testing and malware analysis. Hacking tutorials is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used.
All tutorials and videos have been made using our own routers, servers, websites and other resources, they do not contain any illegal activity. We do not promote, encourage, support or excite any illegal activity or hacking without written permission in general. We want to raise security awareness and inform our readers on how to prevent themselves from being a victim of hackers. If you plan to use the information for illegal purposes, please leave this website now. We cannot be held responsible for any misuse of the given information.
- Hacking Truth by Kumar Atul Jaiswal
I hope you liked this post, then you should not forget to share this post at all.
Thank you so much :-)