Results 1 to 3 of 3

Thread: Cant run vnc server !!

  1. #1
    Join Date
    2015-Jan
    Posts
    18

    Cant run vnc server on new version nethunter ...help !!

    When i try to setup vnc server i got this : root@kali:/# vncserver :1 -geometry 1776x1080 && echo "Closing terminal in 5 secs" && sleep 5 && exit

    Warning: kali:1 is taken because of /tmp/.X1-lock
    Remove this file if there is no X server kali:1
    A VNC server is already running as :1
    root@kali:/#
    Last edited by khanfar; 2016-02-07 at 19:40.

  2. #2
    Join Date
    2015-Jan
    Posts
    18
    Help to solve this ..any idea ???

  3. #3
    Basic VNC Troubleshooting - reboot the entire device (seems obvious but never know with these things)

    Next, use the Nethunter VNC client to try to connect to 127.0.0.1:1 or 127.0.0.1:5901 and see if there is a session running and whether it is the one that should be running.

    Have a look at your running processes with
    Code:
    ps -ef|grep vnc
    and see if there is an instance of VNC Server already running. If there is, try
    Code:
    vncserver -kill :1
    which should relatively cleanly shut down that session and remove any lock files (replace -kill :1 with whatever number is listed if different. The space before the colon IS required).

    If not, move /tmp/.X1-lock to a different location and run
    Code:
    vncserver :1 -geometry 1776x1080 && echo "Closing terminal in 5 secs" && sleep 5 && exit
    again to see what happens. That way, you should still be able to put /tmp/.X1-lock back again if it is an issue even via USB if it should come to that.

    Finally, why not just start session 2?
    Code:
    vncserver :2 -geometry 1776x1080 && echo "Closing terminal in 5 secs" && sleep 5 && exit
    and remember to connect to session 2 or port 5902 instead?

    Credit to http://superuser.com/questions/54938...ssion-in-linux for the improved ps syntax (I would have just used ps | grep vnc)

Similar Threads

  1. Need help with VNC Server
    By joelstitch in forum ARM Archive
    Replies: 0
    Last Post: 2019-11-10, 00:02
  2. Server Installation Boot Problem on Dell 1950 III Server
    By Server in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-04-25, 15:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •