Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Help a networking noob setup vncserver on a linux box
New Posts  All Forums:Forum Nav:

Help a networking noob setup vncserver on a linux box

post #1 of 17
Thread Starter 
I have a machine running Ubuntu x64 at my office. I'd like to be able to access it though my Windows laptop using VNC Viewer.

Can someone please give me a step by step guide for how to do this? Many tutorials I find online are from years ago, and they assume I know how to do certain things like open ports.

I'm perfectly comfortable using the command line, but I don't know much about setting up network stuff.

I don't need my hand held, but many guides I find are from like 2008.
Edited by TEntel - 8/1/11 at 4:52pm
post #2 of 17
Install TightVNC on your Windows machine. For Ubuntu...
Code:
#sudo apt-get install tightvncserver xtightvncviewer
That will install both the server and viewer, in-case you need it. You'll need to open some ports, 5900 and 5800 I think. Might have to Google it to be sure. Been awhile.
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
post #3 of 17
Quote:
Originally Posted by killabytes;14429792 
Install TightVNC on your Windows machine. For Ubuntu...
Code:
#sudo apt-get install tightvncserver xtightvncviewer
That will install both the server and viewer, in-case you need it. You'll need to open some ports, 5900 and 5800 I think. Might have to Google it to be sure. Been awhile.

Its 5900 and 5800. If you're doing this locally you don't even need to do port forwarding on your router in most cases. IMO VNC is super easy to setup.
Its almost the same with any distribution of VNC, I use UVNC on all my desktops/servers at home.
post #4 of 17
Thread Starter 
I haven't been back to work, so I haven't had a chance to try setting this up yet, but I will not always be accessing the machine locally.

It is in a lab at a university, and I work there, as well as at home.
post #5 of 17
Um... I would check with your IT Sec or ISS guys before you do that.

At my work, if you setup a VNC Server, your IP and machine is instantly flagged.
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #6 of 17
If you need to connect over the internet please port tunnel over SSH instead of directly connecting in cleartext.
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
post #7 of 17
Quote:
Originally Posted by beers;14442117 
If you need to connect over the internet please port tunnel over SSH instead of directly connecting in cleartext.

This^

I use the AESV2 128-bit DSM Plugin for mine.
http://msrc4plugin.home.comcast.net/~msrc4plugin/index.html
post #8 of 17
Thread Starter 
Quote:
Originally Posted by GH0;14441008 
Um... I would check with your IT Sec or ISS guys before you do that.

At my work, if you setup a VNC Server, your IP and machine is instantly flagged.

That isn't a problem. I can do whatever I want with this machine. biggrin.gif
Quote:
Originally Posted by beers;14442117 
If you need to connect over the internet please port tunnel over SSH instead of directly connecting in cleartext.
Quote:
Originally Posted by Kaiga;14442430 
This^

I use the AESV2 128-bit DSM Plugin for mine.
http://msrc4plugin.home.comcast.net/~msrc4plugin/index.html

Do I setup VNC server first, and then install the plugin, or is the plugin something I need to add during setup?




Edit:

Okay, I've installed tightVNC viewer on my windows machine, and tightvnc on my linux machine. How to I open ports 5800 and 5900? And how do I get the two computers to connect?
Edited by TEntel - 8/3/11 at 7:57am
post #9 of 17
Well you're just doing this over your local network (i.e. the computers are in the same house, on the same router)

The PC you want to connect to, just install the server. On the PC you want to connect to it with, just install the client, type in it's local IP address and oprt # and it should be good. If you have uPnP enabled on your router you don't even need to configure anything for local access.

For instance, if you're connecting with the client, it would look like: 192.168.1.5:5900 (heck the port number will probably not even be necessary. At least, it isn't for me locally, only when I'm trying to connect remotely outside my network then it will look like a socket connection like mydomainname.com:1234, and only then do the ports need to be forwarded)

If you're connecting via the internet, you will need to forward the ports then by accessing your router's configuration and going to it's port forwarding settings and setting them there. I would select a random port on the server, install a DSM plugin (you just download one and follow the instructions to do so) generate a server and client key, then install the same plugin for the client pc as well.
Edited by Kaiga - 8/3/11 at 11:27am
post #10 of 17
Quote:
Originally Posted by TEntel;14448084 
That isn't a problem. I can do whatever I want with this machine. biggrin.gif

I am not referring to the machine, I am referring to the guidelines of your NUP.

I work with government data, strict firewalls, etc. I can't even connect to my VNC at my house because they have the ports blocked off both ways.

Because I work with government data, the firewall tends to be strict and under tighter policies as well as closely monitored.

Again, I would check with your ISS & IT Sec before doing it.
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Help a networking noob setup vncserver on a linux box