一、软件说明

  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. 09-排序3 Insertion or Heap Sort (25 分)

    According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and gr ...

  2. 安装Visual Studio IntelliCode提供代码智能提示AI

    The Visual Studio IntelliCode extension provides AI-assisted development features for Python, TypeSc ...

  3. 【cf比赛记录】Educational Codeforces Round 78 (Rated for Div. 2)

    比赛传送门 A. Shuffle Hashing 题意:加密字符串.可以把字符串的字母打乱后再从前面以及后面接上字符串.问加密后的字符串是否符合加密规则. 题解:字符串的长度很短,直接暴力搜索所有情况 ...

  4. Java 集合系列之三:Set基本操作

    1. Java Set 1. Java Set 重要观点 Java Set接口是Java Collections Framework的成员. Set不允许出现重复元素-----------无重复 Se ...

  5. 用Python 绘制分布(折线)图

    用Python 绘制分布(折线)图,使用的是 plot()函数. 一个简单的例子: # encoding=utf-8 import matplotlib.pyplot as plt from pyla ...

  6. JMeter分布式执行环境的搭建 ( 使用基于SSL的RMI的有效密钥库 )

    JMeter分布式执行环境的搭建 ( 使用基于SSL的RMI的有效密钥库 ) 在上一篇的基础之上,提供一个简单的例子: Master和Slave不是同一台,采用默认端口 Master:10.86.16 ...

  7. tornado利用装饰器记录每个http请求

    python利用装饰器记录每个http请求 设置装饰器 from functools import wraps from datetime import datetime ""&q ...

  8. 当Windows操作系统关机时,不会执行Windows Service的OnStop方法(转载)

    Windows Service OnStop when computer shutdown 问: I'm writing a Windows Service in C#. I want to take ...

  9. C# yield checked,unchecked lock语句(C#学习笔记04)

    特殊语句 yield语句 yield用于终止迭代 只能使用在返回类型必须为 IEnumerable.IEnumerable<T>.IEnumerator 或 IEnumerator< ...

  10. selenium中元素操作之上传操作(六)

    上传操作分为两种情况: 1.input标签上传 如果是input可以直接输入路径的,那么直接调用send_keys输入路径,和前边的元素操作类似,在这里不再过多的赘述. 2.非input标签上传 非i ...