码迷,mamicode.com
首页 > 其他好文 > 详细

Kali 安装tightvncserver

时间:2019-09-07 22:44:25      阅读:1188      评论:0      收藏:0      [点我收藏+]

标签:format   gen   安装   nbsp   root   lan   用户   ase   article   

一、软件说明

  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:1.3.9-9).
0 upgraded, 0 newly installed, 0 to remove and 199 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
0 upgraded, 2 newly installed, 0 to remove and 199 not upgraded.
Need to get 588 kB of archives.
After this operation, 3821 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.ustc.edu.cn/kali kali-rolling/main arm64 xorgxrdp arm64 1:0.2.9-1 [170 kB]
Get:2 http://mirrors.ustc.edu.cn/kali kali-rolling/main arm64 xrdp arm64 0.9.9-1 [417 kB]
Fetched 588 kB in 5s (128 kB/s)
Selecting previously unselected package xorgxrdp.
(Reading database ... 253097 files and directories currently installed.)
Preparing to unpack .../xorgxrdp_1%3a0.2.9-1_arm64.deb ...
Unpacking xorgxrdp (1:0.2.9-1) ...
Selecting previously unselected package xrdp.
Preparing to unpack .../xrdp_0.9.9-1_arm64.deb ...
Unpacking xrdp (0.9.9-1) ...
Setting up xrdp (0.9.9-1) ...

Generating 2048 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 (1:0.2.9-1) ...
Processing triggers for systemd (241-7) ...
Processing triggers for man-db (2.8.6.1-1) ...
Processing triggers for libc-bin (2.28-10) ...
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*
0 upgraded, 0 newly installed, 1 to remove and 199 not upgraded.
After this operation, 2879 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 253222 files and directories currently installed.)
Removing xrdp (0.9.9-1) ...
Processing triggers for man-db (2.8.6.1-1) ...
Processing triggers for libc-bin (2.28-10) ...
(Reading database ... 253147 files and directories currently installed.)
Purging configuration files for xrdp (0.9.9-1) ...
Processing triggers for systemd (241-7) ...
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*
0 upgraded, 0 newly installed, 1 to remove and 199 not upgraded.
After this operation, 1622 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 253115 files and directories currently installed.)
Removing tightvncserver (1:1.3.9-9) ...
Processing triggers for man-db (2.8.6.1-1) ...
root@kali:~#

本文参考:

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

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

Kali 安装tightvncserver

标签:format   gen   安装   nbsp   root   lan   用户   ase   article   

原文地址:https://www.cnblogs.com/061713xlhj/p/11483228.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!