如何在Kali Linux上安装Visual Studio Code 2017.x

时间:2020-02-23 14:38:52  来源:igfitidea点击:

Visual Studio代码是免费使用的代码编辑器,重新定义和构建和调试现代Web和云应用进行了优化。
Visual Studio代码运行在Linux,Windows和MacOS。

Visual Studio代码将源代码编辑器的简单性与强大的开发人员工具相结合,如IntelliSense代码完成和调试。

在Kali Linux上安装Visual Studio代码

我们将使用官方APT存储库来安装Kali Linux上的Visual Studio代码。
在添加存储库之前,更新系统并安装下面的包。

sudo apt update
sudo apt install curl gpg software-properties-common apt-transport-https

将Microsoft GPG密钥导入Kali Linux:

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add 

然后为kali linux添加vs代码的APT存储库:

echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list

最后,在卡利的Linux安装Visual Studio代码:

sudo apt update
sudo apt install code

在Kali Linux上开始患者安装VS代码。
这应该是一个快速的过程,具体取决于互联网有多好:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  figlet finger firebird3.0-common firebird3.0-common-doc freerdp2-x11 gdal-data libarmadillo9 libarpack2 libbson-1.0-0 libcfitsio8 libcharls2
  libconfig-inifiles-perl libdap25 libdapclient6v5 libepsilon1 libfbclient2 libfreerdp-client2-2 libfreerdp2-2 libfreexl1 libfyba0 libgeotiff5
  libhdf4-0-alt libkmlbase1 libkmldom1 libkmlengine1 libmemcached11 libmongoc-1.0-0 libnetcdf15 libodbc1 libogdi4.1 libqhull7 libspatialite7 libssh-4
  libsuperlu5 liburiparser1 libwinpr2-2 libxerces-c3.2 medusa odbcinst odbcinst1debian2 python3-aiohttp python3-aioredis python3-ajpy
  python3-apscheduler python3-async-timeout python3-git python3-gitdb python3-multidict python3-pyexploitdb python3-pyfiglet python3-pyshodan
  python3-pysmi python3-pysnmp4 python3-quamash python3-smmap python3-tld python3-yarl python3-yaswfp rwho rwhod sparta-scripts toilet-fonts wapiti
  xsltproc
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  code
0 upgraded, 1 newly installed, 0 to remove and 819 not upgraded.
Need to get 62.3 MB of archives.
After this operation, 265 MB of additional disk space will be used.