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

vnc连接kali 2.0 报错:A problem has occurred and the system can't recover.

时间:2016-08-05 16:06:08      阅读:2032      评论:0      收藏:0      [点我收藏+]

标签:

kali版本:

root@kali:~# uname -a
Linux kali 4.3.0-kali1-amd64 #1 SMP Debian 4.3.3-7kali2 (2016-01-27) x86_64 GNU/Linux

 

第一步 安装相关源:

apt-get install mate-core mate-desktop-environment mate-desktop-environment-extra

第二步 启动vncserver:

root@kali:~# vncserver

New X desktop is kali:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/kali:1.log

第三步 关闭vncserver:

root@kali:~# vncserver -kill :1
Killing Xtightvnc process ID 2280

第四步 修改/root/.vnc/xstartup文件:

注释/etc/X11/Xsession,添加/usr/bin/mate-session

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
#/etc/X11/Xsession
/usr/bin/mate-session

第五步 启动vncserver:

root@kali:~# vncserver

New X desktop is kali:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/kali:1.log

 

做完以上步骤就可以使用vnc连接了

技术分享

 

vnc连接kali 2.0 报错:A problem has occurred and the system can't recover.

标签:

原文地址:http://www.cnblogs.com/zheh/p/5741298.html

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