一、软件说明

  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. ipv6转ipv4 NAT64与DNS64基本原理概述

    原文: https://blog.csdn.net/zhangjie1989/article/details/51464251 1.NAT64与 DNS64背景 在 IPv6网络的发展过程中,面临最大 ...

  2. concurrent(五)同步辅助器CountDownLatch & 源码分析

    参考文档: https://blog.csdn.net/zxdfc/article/details/52752803 简介 CountDownLatch是一个同步辅助类.允许一个或多个线程等待其他线程 ...

  3. 2018-2019-2 网络对抗技术 20165230 Exp8 Web基础

    目录 实验目的 实验内容 实验步骤 (一)Web前端HTML Apache HTML编程 (二) Web前端javascipt 基础知识理解 JavaScript编程 (三)Web后端:MySQL基础 ...

  4. git常用指令汇总

    命令行指令 Git 全局设置 git config --global user.name "cqu2003" git config --global user.email &quo ...

  5. stop容器,把信号量传给java进程,优雅退出

    Java中可以添加ShutdownHook监听关闭事件,包括kill -15, control+c,terminal等信号.kill -9则接收不到. Runtime.getRuntime().add ...

  6. Notepad++ 【自动完成】与【输入时提示函数参数】互相冲突,无奈

    Notepad++ 既然可以在输入时提示函数参数,可是当提示函数参数的时候,输入具体参数时[自动完成]失效了. 一位用户遇到和我一样的问题:https://community.notepad-plus ...

  7. 【源码阅读】SpringBoot-v2.2.0启动过程以及细节

    启动流程 图如下: 以上流程图源文件(可导入https://www.processon.com):https://github.com/Mysakura/DataFiles 相关Event(org.s ...

  8. [转帖]Linux crontab 查看所有用户的crontab任务

    Linux crontab 查看所有用户的crontab任务 https://www.cnblogs.com/xzlive/p/11542176.html 查看所有用户的crontab任务 - mlz ...

  9. 贪心 + 计算几何 --- Radar Installation

    Radar Installation Description Assume the coasting is an infinite straight line. Land is in one side ...

  10. java自定义异常和throw、throws的使用

    一.自定义异常类 我们知道所有的异常都是Exception,所以我们需要自定义异常只需要继承那个Exception类就可以了.下面我们自定义一个异常类,代码如下: /** * 自定义异常, */ // ...