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

kali版本:

[email protected]:~# 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:

[email protected]:~# vncserver

New ‘X‘ desktop is kali:1

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

第三步 关闭vncserver:

[email protected]:~# 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:

[email protected]:~# 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.

时间: 2024-10-18 01:10:48

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

<亲测>用navicat连接mysql 8.0 报错2059

ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded 2018年05月07日 15:56:32 阅读数:2997更多 个人分类: DockerMySQL 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/HeatDeath/article/details/80226934 问题: 连接Docker启动的mysql出现:ERROR 2059

远程连接mysql root账号报错:2003-can't connect to MYSQL serve

1.远程连接Linux系统,登录数据库:mysql -uroot -p(密码) 2.修改root账号的设置: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; 其中'root'为mysql用户名,'123456'为root账户密码,修改其他用户修改对应的参数即可. 3.执行 flush privileges;命令立即生效 4. 使用exit命令退出MySQL 然后打开vim  /

远程连接CentOS的MySQL报错:Can't connect to MySQL server on 'XXX' (13)

环境: 系统版本: CentOS release 6.5 (Final) 数据库版本: 5.1.73 问题描述: 使用客户端远程登录连接基于CentOS 6.5服务器上的Mysql,报错:Can't connect to MySQL server on 'XXX' (13) 解决方法: 通常情况下,可以进行如下设置 1. 进入MySQL的控制台 # mysql -u root -p 2. 在MySQL的控制台中输入如下命令 mysql> grant all privileges on *.* t

Android Studio中Android Support Library升级到 23.0.0 报错!

Android Support Library升级到 23.0.0  报错解决方案 不得不说,真能折腾!将Android Studio中SDK下的 Android Support Library 升级到了23.0.0,结果倒好了,创建项目出问题了,还比较奇葩: 卧槽你大爷!尼玛还能不能好好玩耍了.各种卸载重装,就差重装系统了. 后来在神器stackoverflow中找到了这么一篇: http://stackoverflow.com/questions/32092511/resource-erro

解决MySQL8.0报错:Unknown system variable 'validate_password_policy'

一.问题描述 1.在安装MySQL8.0时,修改临时密码,因密码过于简单(如:123456),不符合MySQL密码规范,会触发一个报错信息: ERROR 1819 (HY000): Your password does not satisfy the current policy requirements. 二.遇到问题 1.解决办法调整MySQL密码验证规则,修改 policy 和 length 的值. 2.MySQL 5.7 进行如下设置,即可解决问题: mysql>  set global

TP5.0 报错Trying to get property 'obj' of non-object解决办法

写一段简单代码举例一下: $id=$_POST['id'];$sql="SELECT * FORM user WHERE id='$id'";$result=$mysqli->query($sql);$user=$result->name; 如果报错:Trying to get property 'name' of non-object 可能造成报错的原因是你查询出来的结果不是个对象,所以不能用“->”这种方式,解决办法:进入数据库查看一下表结构,看看查出来的是什么数

Oracle11g 启动报错ORA-00845: MEMORY_TARGET not supported on this system报错解决

ORA-00845: MEMORY_TARGET not supported on this system报错解决 Oracle启动报错 ORA-00845: MEMORY_TARGET not supported on this system报错解决 SQL> startup ORA-00845: MEMORY_TARGET not supported on this system 查看原本大小 [[email protected] oracle]# df -h|grep shm tmpfs

「android」Ubuntu下android studio 编译报错A problem occurred starting process 'command '/Android/Sdk/build-tools/21.1.2/aapt''(转)

转自”http://www.cnblogs.com/jonzone/p/5246531.html“ 此问题在stack  over flow 上找到答案. 原链接地址:http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error 解决方法: //在终端分别运行下面两条指令,安装lib32stdc++6 和lib32z1 sudo apt-get

文件上传报错:Unknown: file created in the system's temporary directory

nginx+php下文件上传成功,但会有错误提示如下: <b>Notice</b>:  Unknown: file created in the system's temporary directory in <b>Unknown</b> on line <b>0</b><br /> 网上搜索相关资料发现可能和php下临时文件存放目录配置有关,查看进入php.ini配置文件 配置文件搜索upload_tmp_dir,默认/