Networks linux build your own server help please!

Discussion in 'Tech Support' started by davie107, 28 Mar 2009.

  1. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    i opened the terminal, without sudo su, then i vncpasswd ~/.vnc/passwd and ended up with

    server@server-desktop:~$ vncpasswd ~/.vnc/passwd
    Password:
    Verify:
    Couldn't open /home/server/.vnc/passwd for writing


    i used all of the passwords i would have used and the same error keeps appearing??

    Thanks

    Dave:wallbash:
     
  2. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    Does that file definitely exist?
    try cat /home/server/.vnc/passwd

    do you get any out put?
     
  3. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Try:
    Code:
    mkdir ~/.vnc
     
  4. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    i entered that and ended up with No such file or directory,

    when i enter gliders code as this (hopefully it is right) server@server-desktop:~$ mkdir ~/.vnc


    nothing happens

    thanks Dave
     
  5. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Something does happen, it creates the directory (like it says in your error)...

    Try adding the password again ;)
     
  6. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    thanks i managed to get past this error and add the new pass word by following the steps you gave me,
    i then think i got past the making of the script as the file is there, but when i enter the next command sudo chmod 755 /usr/local/bin/sharex11vnc i get No such file or directory

    Many thanks again for you help,

    Dave
    :sigh:
     
  7. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Well, you created the script, but where did you save it?
     
  8. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    thanks glider, must have saved it in the wrong place :wallbash:

    But it is all working now:rock: and i am just about to setup the windows side of things

    will keep you posted

    Thanks

    Dave
     
  9. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    i spoke to soon :sigh:
    after setting up putty fine, i installed vnc on my windows pc i use the viewer and type in localhost:0 however instead of a password box i am given an error message

    connection failed- error reading protocol version,

    any ideas on what i need to change to get it to work

    Thanks

    Dave
     
  10. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Could be a number of things...

    Can you post the output of:
    Code:
    netstat -taunp | grep 5900
    dpkg -l | grep vnc
    and the version of your VNC client (on the Windows machine)
     
  11. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    i copied the code and heres what happened, server@server-desktop:~$ netstat -taunp | grep 5900
    (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    server@server-desktop:~$ dpkg -l | grep vnc
    ii libgtk-vnc-1.0-0 0.3.4-0ubuntu2 A VNC viewer widget for GTK+ (runtime libraries)
    ii libvncserver0 0.9.3.dfsg.1-1ubuntu1 API to write one's own vnc server
    ii vnc4-common 4.1.1+xorg1.0.2-0ubuntu7 Virtual network computing server software
    ii x11vnc 0.9.3.dfsg.1-1ubuntu1 VNC server to allow remote access to an existing X session
    server@server-desktop:~$


    im using ultravnc 1.0.5

    Thanks
    Dave
     
  12. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Try this viewer.
     
  13. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    no luck either it says connection established, then connection closed in another pop up????
     
  14. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
  15. davie107

    davie107 Linux or Windows???

    Joined:
    18 Dec 2007
    Posts:
    73
    Likes Received:
    2
    i dont even get chance to enter a password thats the annoying thing, il try some other hosts, no luck with them either, any more ideas???
    Thanks
    Dave
     
    Last edited: 29 Mar 2009

Share This Page