Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

David's personal tech support thread

Options
  • 18-01-2005 12:51am
    #1
    Closed Accounts Posts: 761 ✭✭✭


    (I guess Ian will be the only one able to answer this but here I go anyway)
    How do I know what port to connect to on walton.maths.tcd.ie with VNC through PuTTY? I've got the option set to (under the tunnels section in PuTTY) L5900 localhost:5900. When I run VNCviewer it gives says: server closed connection unexpectedly.

    I guess I'm forwarding the remote port 5900 to localhost:5900 then connecting to localhost:5900 with VNC. I'm pretty sure I've got all the right ports forwarded from my router so any idea where I'm going wrong?

    There's not a huge amount of options in PuTTY so my last thought would be that I'm connecting to the wrong port on the maths servers.


«1

Comments

  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    probally are, when u ran vncserver what session number did it give u?
    looking at namp i see sessions on 5901 and 5902


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Oh right, I didn't realise I had to run vncserver by typing the command in PuTTY. I did that now and it gave me session 3. So that means I have to connect to port 5903 right? But do I have to start up a new PuTTY thing for that port?


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Ugh still not working, I'm actually doing things right now but I'm getting an error connection refused


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    5903 seems to be a valid one , you sure you've the portforwarding setup correctly?


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    In PuTTY under tunnels:
    Source port: 5903
    Destination: localhost:5900

    My router forwards ports 5900-5910 to my computer.

    I try VNC to localhost:5900 and I either get connection refused or an unexpected closure.


  • Advertisement
  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    In PuTTY under tunnels:
    Source port: 5903
    Destination: localhost:5900

    My router forwards ports 5900-5910 to my computer.

    I try VNC to localhost:5900 and I either get connection refused or an unexpected closure.
    just tried one there, works fine for me, you sure you selected local tunnel vs remote? and that in all connection settings available u selected ipv4?


  • Registered Users Posts: 4,579 ✭✭✭Pet


    *makes swooshing over head sound and does corresponding action*


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    In netstat I have:
    local address foreign address state
    davelaptop:5900 localhost:2397 TIME_WAIT


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    I guess it must be this retarded router


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    In netstat I have:
    local address foreign address state
    davelaptop:5900 localhost:2397 TIME_WAIT
    5900? should it not be 5903?

    and once u can make an outbound connection your router doesn't come into it, vnc doesn't require an inbound connection................


  • Advertisement
  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Yey it's working now, I guess it was just that port thing. Thanks for pointing that out!


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Two last things, is it possible to resize it to anything greater than 640*480 and does vi/vim have syntax highlighting?


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    vncserver -geometry 1600*1200 or whatever you want if anyone is interested


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    well since u figured the other one out.......
    does vi/vim have syntax highlighting?

    add the line
    syntax on
    ~/.vimrc


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    does that only work with gvim?


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    ummmm nope, works fine with vim for me...


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    **** sake, another thing that doesn't work off the bat for me


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    try it on turing

    o and try an echo $TERM and tell me the results there..


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    It works on turing... brought a tear to my eye. echo $TERM gives xterm-color


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Oh and do the maths servers have a mysql database or the likes? At the moment I have 4 or so very simple php scripts to read in stuff from text files and echo them and then the CSS takes over with the formatting. But they are very painful and seem to stop working and I don't like the way I have to set the permissions.

    http://www.maths.tcd.ie/~dleen/index.php


  • Advertisement
  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    Oh and do the maths servers have a mysql database or the likes? At the moment I have 4 or so very simple php scripts to read in stuff from text files and echo them and then the CSS takes over with the formatting. But they are very painful and seem to stop working and I don't like the way I have to set the permissions.

    http://www.maths.tcd.ie/~dleen/index.php
    read in and echo? you could just use require/include and it would load up the files and spew them out...... , and 644 premissions? whats wrong with that if your going to be displaying them on the web anyway?


    anyway yes we do have a mysql server, its on gosset, you can request an account by mailing ops@maths.tcd.ie


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Great thanks, I'm pretty new to php so I was just trying to use the bit of C knowledge that I've got so far to do this since php is fairly similar to it.


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    ah yeah php is a complete doddle when ye know C


  • Posts: 16,720 ✭✭✭✭ [Deleted User]


    Really? Hmmm...


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    Myth wrote:
    Really? Hmmm...
    yes if u didn't zone out when ever mention something computer related i'm sure u'd have learned that ages ago :p


  • Closed Accounts Posts: 4,487 ✭✭✭Kevin_rc_ie


    All hail the mighty ian, keeper of all information techo.


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    All hail the mighty ian, keeper of all information techo.
    lol.


  • Closed Accounts Posts: 761 ✭✭✭PrecariousNuts


    Any update on my request;
    28954 6days open mysql account


  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    Any update on my request;
    28954 6days open mysql account
    o yeah that, umm i forgot since eoin's gone i'm about the only one who can be bothered admin'n the mysql server..... woopsie


  • Advertisement
  • Registered Users Posts: 7,314 ✭✭✭Nietzschean


    right all done, check ur maths email.


Advertisement