Click to See Complete Forum and Search --> : VNC
L.I. Surfer
08-08-2001, 08:36 AM
How exactly do I use VNC, i understand its through my browser, but if i want to access my comp. from work,i need a vncserver running, i'm guessing through console, then what ports should i forward through my linksys router? THEN! how do i start everything up? I have gone to my RPM manager do i go console and set up a "vncserver" then i use vncveiwer to access my computer? I'm running Mandrake 8.
Ryan
milanuk
08-08-2001, 09:06 AM
I hate to be rude, but have you read the abundant documentation at the VNC website?? It covers pretty much all of the questions you have, and then some.
Monte
L.I. Surfer
08-08-2001, 09:25 AM
<===dumbass
sorry to waste bbs space
yogee
08-08-2001, 01:48 PM
Wow what great help he was huh? I think your one word summed it up.
On with the help! To open ports needed by vncserver in your router question. Vncserver runs on port 5801, but say you want to start one for you and another for a friend, then you will have to open another port for him/ (god forbid)her. Vncserver will start with 5801 and work its way up. Just to be safe you can open and forward several ports just for the hell of it. I open and forward 5801 - 5806 just incase. If you have vncserver running and somehow it crashes or what ever, you cant get into 5801 you can login via ssh and start another by typing "vncserver" without the "". You will need to log into the next session by port 5802.
Go get the rpm and install it and you can simply start it by typing vncserver. Use your ip:5801 to get into it. BIG TIP HERE. If you want to see gnome when you get in you will have to edit a file in the user/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
You must add "gnome-session" like below.
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
gnome-session
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
You will have to do this to all users files that have been used for vncserver. You can login as root, start vncserver and login. You will need to edit root's xstartup file to see gnome. Same hold true with any user you start vncserver with. Once this file is edited it will remain the same gnome session at every login.
You are correct of how you login. Right thru internet explorer.
The Whizzard
08-08-2001, 03:36 PM
yogee. thanks, i never knew you can just HTTP://vnchost:5001 from an webbrowser. i've been using vnc for almost a year and always installed the winvnc to connect to my linux box from windows. also thanks for the ~/.vnc/xstartup. i haven't tried it yet, but does it display GNOME or GNOME applications properly. Before, i just typed gnome-session in the xterm and the colors would be messed up. blackbox, which i currently use, has alway displayed correctly.
thanks again.
yogee
08-08-2001, 05:52 PM
Yes, if you add gnome-session it will work as though your actualy in gnome on the system itself. I belive you can add kde-session or something similar to use kde in vncserver. You can start several vnc sessions on one machine. They will just be numbered over the 5801 starting port of vncserver one. Have no idea what went wrong but my vncserver will not work correclty anymore. I tried to get it to startup with the system within webmin and got it all messed up. Tried a reinstall and its still not working. I think it might have some thing to so with this display manager in webmin that changes the runlevel. i think thats what it is.
Did i mention, you welcome. Glad i have helped someone today.
Pinnacle101
09-05-2001, 07:52 AM
Well, this one helped me out.
But I can only start the gnome-session.
If I try to start the vncserver using the kde-session instead of gnome-session, it's not working.
Is there anything else I need to think of when using KDE instead of gnome?