zoukankan      html  css  js  c++  java
  • vnc连接kali 2.0 报错:A problem has occurred and the system can't recover.

    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连接了

  • 相关阅读:
    待完成
    [NOI2006]神奇口袋
    [UVA 10529]Dumb Bones
    概率与期望习题总结
    [SHOI2012]随机树
    [luogu3412]仓鼠找sugar II
    [CF908D]New Year and Arbitrary Arrangement
    [清华集训]小 Y 和恐怖的奴隶主
    [SDOI2015]序列统计
    [luogu3600]随机数生成器
  • 原文地址:https://www.cnblogs.com/zheh/p/5741298.html
Copyright © 2011-2022 走看看