Jump to content
  • 0

I need Help on VNC GUIDE


BugsLIFE

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   4
  • Joined:  06/07/13
  • Last Seen:  


//You can start by installing Gnome Environment and VNC.

yum -y groupinstall "GNOME Desktop Environment"
yum -y install vnc-server

//Use Nano to edit /etc/sysconfig/vncservers

nano /etc/sysconfig/vncservers

//Remove the # in front of these syntax. Change the user name and geometry.

Quote

VNCSERVERS="1:matrixfox8"
VNCSERVERARGS[1]="-geometry 1024x768 -localhost"


//Create a none root Linux account with out Super User commands. Also make a very strong password.

useradd matrixfox8
passwd matrixfox8

//After "passwd yourusername" it will prompt you for Unix password.

TIP: You can also stop here and go straight to installing the basis of rathena and mysql. Them come back here later.

// DO NOT RUN AS ROOT!!! NEVER, NEVER, FOR THE LOVE OF GOD, NEVER RUN AS ROOT!!!!!!!!!!!!!
//After starting and killing the processes, it will create a xstartup file for that account.

vncserver :2

//In the middle of this you will be prompt to setup a VNC password.

vncserver -kill :2

//Edit your xstartup with Nano

nano ~/.vnc/xstartup

//Remove the # in front of unset, exec. Then add and edit these two following lines.

Quote

#!/bin/sh
(while true ; do xterm ; done ) &
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] & exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] & xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

TIP: Make sure you press enter at the very end of nano, leaving a blank syntax line..

//Start VNC n' get ready to log in.

vncserver :2

//Now open your VNC client and log in as your ip, remember the :2 for the port number at the end of the IP.

Quote

192.168.1.100:2


//VNC Super User Commands

/sbin/service vncserver start
/sbin/service vncserver stop
/sbin/chkconfig vncserver on
 
 
--------------
 
I followed this guide and i still cant connect on my vnc viewer
is there a missing step here?
 
error: Connection refused (10061)
Edited by BugsLIFE
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...