一、软件说明

  a) tightvncserver是一个轻量级,只能建立桌面,不能查看TTY7/TTY1正在显示的桌面,但x11 vnc可以,相比x11vnc 安全传输差一些。反之,x11 vnc:安全传输较好,但占用资源比tightvncserver要多。

  b) XRDP是一个服务器的远程桌面协议(RDP),Xrdp是免费软件。基于rdesktop工作,旨在为Linux提供功能的终端服务器。

二、安装tightvncserver

执行命令:apt-get install tightvncserver(我这里已经存在)

root@kali:~# apt-get install tightvncserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
tightvncserver is already the newest version (:1.3.-).
upgraded, newly installed, to remove and not upgraded.
root@kali:~#

三、安装Xrdp

执行命令:apt-get install xrdp

root@kali:~# apt-get install xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
xorgxrdp
Suggested packages:
guacamole xrdp-pulseaudio-installer
The following NEW packages will be installed:
xorgxrdp xrdp
upgraded, newly installed, to remove and not upgraded.
Need to get kB of archives.
After this operation, kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get: http://mirrors.ustc.edu.cn/kali kali-rolling/main arm64 xorgxrdp arm64 1:0.2.9-1 [170 kB]
Get: http://mirrors.ustc.edu.cn/kali kali-rolling/main arm64 xrdp arm64 0.9.9-1 [417 kB]
Fetched kB in 5s ( kB/s)
Selecting previously unselected package xorgxrdp.
(Reading database ... files and directories currently installed.)
Preparing to unpack .../xorgxrdp_1%3a0.2.9-1_arm64.deb ...
Unpacking xorgxrdp (:0.2.-) ...
Selecting previously unselected package xrdp.
Preparing to unpack .../xrdp_0.9.9-1_arm64.deb ...
Unpacking xrdp (0.9.-) ...
Setting up xrdp (0.9.-) ... Generating bit rsa key... ssl_gen_key_xrdp1 ok saving to /etc/xrdp/rsakeys.ini update-rc.d: We have no instructions for the xrdp init script.
update-rc.d: It looks like a network service, we disable it.
xrdp-sesman.service is a disabled or a static unit, not starting it.
Setting up xorgxrdp (:0.2.-) ...
Processing triggers for systemd (-) ...
Processing triggers for man-db (2.8.6.1-) ...
Processing triggers for libc-bin (2.28-) ...
root@kali:~#

四、kali系统文件配置

  a) 向xsession中写入xfce4-session

echo “xfce4-session” >~/.xsession

  b) 修改/etc/xrdp/startwm.sh文件

在/etc/X11/Xsession前加入xfce4-session

  c) 重启xrdp

/etc/init.d/xrdp restart

五、使用VNC

  a) 启动ssh服务

/etc/init.d/ssh start

  b)启动xrdp服务

/etc/init.d/xrdp start

  c) Windows运行mstsc远程桌面连接,输入IP地址,选择Xorge,输入kali 用户名和密码即可。

六、卸载vnc

  a)卸载xrdp

root@kali:~# apt-get purge xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
xrdp*
upgraded, newly installed, to remove and not upgraded.
After this operation, kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... files and directories currently installed.)
Removing xrdp (0.9.-) ...
Processing triggers for man-db (2.8.6.1-) ...
Processing triggers for libc-bin (2.28-) ...
(Reading database ... files and directories currently installed.)
Purging configuration files for xrdp (0.9.-) ...
Processing triggers for systemd (-) ...
root@kali:~#

  b) 卸载tightvncserver

root@kali:~# apt-get purge tightvncserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
tightvncserver*
upgraded, newly installed, to remove and not upgraded.
After this operation, kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... files and directories currently installed.)
Removing tightvncserver (:1.3.-) ...
Processing triggers for man-db (2.8.6.1-) ...
root@kali:~#

本文参考:

https://blog.csdn.net/wangqingliang2012/article/details/83070447

https://blog.csdn.net/gx262091291/article/details/71774482/

Kali 安装tightvncserver的更多相关文章

  1. kali安装java1.8

    0x01 下载 首先,去官方网站下载JDK1.8对应的版本 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads ...

  2. 20165232 week1 kali安装

    20165232 Week1 kali安装 一.安装虚拟机 首先到kali官网下载64bit版本的kali(3.5G),这里我是从同学盘上拷过来的. 下载VMWARE 进入官网,找到如下图示 点击进行 ...

  3. 2018-2019-2 《网络对抗技术》Exp0 Kali安装 Week1 20165237

    2018-2019-2 <网络对抗技术>Exp0 Kali安装 Week1 20165237 安装虚拟机 首先创建虚拟机 创建好虚拟机后,打开虚拟机进行安装.第一步选择Graphcal i ...

  4. 2018-2019-2 20165234 《网络对抗技术》 Exp0 Kali安装 Week1

    Week1 kali安装 一.下载系统镜像文件 首先下载系统镜像,进入kali官网,在Downloads中选择Download Kali Linux. 我选择的是64位版本,点击HTTP下载镜像文件. ...

  5. 2018-2019-2 《网络对抗技术》 Exp0 Kali安装 20165221 Week1

    2018-2019-2 <网络对抗技术> Exp0 Kali安装 20165221 Week1 安装Vmware 上学期已经安装过,不再赘述. 如需安装,可参考如何安装vmware 下载v ...

  6. 2018-2019-2 20165325《网络对抗技术》Exp0 Kali安装 Week1

    2018-2019-2 20165325<网络对抗技术>Exp0 Kali安装 Week1 一.安装kali VMware上学期已经有了,主要是下载Kali-Linux-2019.1-vm ...

  7. 20165314《网络对抗技术》week1 Exp0 Kali安装

    系统安装.网络配置 我的Kali安装是按照https://baijiahao.baidu.com/s?id=1610754152224855428&wfr=spider&for=pc进 ...

  8. 2018-2019-2 《网络对抗技术》Exp0 Kali安装 Week1

    - 2018-2019-2 <网络对抗技术>Exp0 Kali安装 Week1 - 安装过程 - 安装Kali VMware上学期已经装好了,Kali的镜像文件是从同学那拷过来的,所以这两 ...

  9. Kali安装Docker

    ---恢复内容开始--- 第一周 计划安装好docker     准备 审计thinkphp 框架 先把docker 安装的笔记补上 本来是在unbuntu 安装了一遍 并run 了几个镜像和基本操作 ...

随机推荐

  1. 第08组 Beta冲刺(4/5)

    队名:955 组长博客:点这里! 作业博客:点这里! 组员情况 组员1(组长):庄锡荣 过去两天完成了哪些任务 文字/口头描述 ? 测试新功能中 展示GitHub当日代码/文档签入记录 接下来的计划 ...

  2. Asp.Net 服务器控件下使用Jquery.validate.js

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  3. [原创]Python免杀ShellCode加载器(Cobaltstrike/Metasploit)

    0x001 原理 采用分离法,即将ShellCode和加载器分离.方法较LOW但免杀. 本文主要将ShellCode转成HEX,再通过加载器执行ShellCode. PS: 何为SC加载器,即专门用于 ...

  4. Delphi 开发微信公众平台 (二)- 用户管理

    一.用户标签管理 开发者可以使用用户标签管理的相关接口,实现对公众号的标签进行创建.查询.修改.删除等操作,也可以对用户进行打标签.取消标签等操作. 1.创建标签 /// <summary> ...

  5. ubuntu docker 下mongodb集群和分片

    首先我们计划启动了三个mongo服务:master,salve,arbiter 1.准备工作 新建文件夹如图(每个文件夹下面有db和configdb文件夹): 生成认证文件并修改权限 openssl ...

  6. 通过Queue控制线程并发,并监控队列执行进度

    # -*- coding:utf-8 -*- import Queue import time import threading # 需要执行的业务主体 def domain(id): time.sl ...

  7. Python 文件编码问题解决

    最近使用python操作文件,经常遇到编码错误的问题,例如: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position ...

  8. opencv imshow plt imshow

    opencv官方文档上写的,https://docs.opencv.org/master/dc/d2e/tutorial_py_image_display.html Color image loade ...

  9. js 加密方法Encrypt

    function Encrypt(str, pwd) { if (str == "") return ""; str = escape(str); if (!p ...

  10. c#使用SoundPlayer播放wav格式音频

    1.引用System.Media名称空间下的类SoundPlayer   SoundPlayer player = new SoundPlayer(); 2.方法调用Play(); public vo ...