Jump to content

  •  

Photo

[GUIDE] How to install vnc4server in Debian OS to operate gui in Windows


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 deathscythe13

deathscythe13

    Poporing

  • Members
  • PipPipPipPip
  • 115 posts

Posted 17 April 2012 - 01:59 PM

To anyone who doesn't know about what is VNC Software - it is a remote control that let you controls your vps and with gui to easily navigate linux.

FIRST GUIDE IS FOR YOUR VPS:

first get vnc4server and install in your os:
apt-get install vnc4server

next get GNOME and install this may take a while so wait
apt-get install gnome-desktop-environment

next is if you dont have another user aside root yet do the following else SKIP!:
adduser "youruser"
passwd "yourpass"



next if you already have a user which you will be using to start vnc server, switch to your user:
su - "youruser"
then type:
vncpasswd

it will then let you type a new vnc password like this and dont forget your password we will use it to connect your vnc client:
Password: "yourvncpass"
Verify: "yourvncpass"

next is in order for the ".vnc/xstartup" file to appear you will run vnc for the first time:
vncserver :1
<-- NOTE: The :1 here is the id you put next to your ip, so for example yourserverip:1 / yourdomain.com:1

next is you stop your vnc to do this:
vncserver -kill :1<-- NOTE: The :1 is the id that your vnc started, so in order for you to stop you must put the right id
that was running

next is you change ".vnc/xstartup" file to do this:
vi .vnc/xstartup
you can also locate this file in /home/USERXXX/.vnc using FTP..

the code above will lead you to ".vnc/xstartup" file and edit it, you will add below:
# exec /etc/X11/xinit/xinitrc
exec gnome-session &


To Edit: Press "A" so that you can type in the file
To Exit: Press "Esc" and type ":wq" to go back and save.

after all of that run again your vnc using this:
vncserver :1 -geometry 1024x768 -depth 24

TADA!! and your VNC Server is now running!!


NEXT GUIDE IS FOR YOUR PC/MACHINE THAT YOU WANT TO CONNECT TO YOUR VPS:

Download: http://realvnc.com/p...1/download.html from here or Search in: http://www.google.com

Run your VNC it should look like this:
Posted Image OR Posted Image

Next is you enter your vnc password in STEP 5 of GUIDE for VPS:

Posted Image


Lastly The GUI inside!! :D

Posted Image

Edited by deathscythe13, 17 April 2012 - 10:29 PM.


#2 Matrixfox

Matrixfox

    Hungry Supporter

  • Members
  • PipPipPipPipPip
  • 277 posts

Posted 17 April 2012 - 03:02 PM

Nice, LOVE IT!

#3 Shinon Yoshida

Shinon Yoshida

    TheBeast

  • Members
  • PipPipPipPipPip
  • 203 posts

Posted 17 April 2012 - 03:42 PM

Nice guide! Very descriptive, this probably would work for Ubuntu Server as well.

#4 Matrixfox

Matrixfox

    Hungry Supporter

  • Members
  • PipPipPipPipPip
  • 277 posts

Posted 17 April 2012 - 09:00 PM

Nice guide! Very descriptive, this probably would work for Ubuntu Server as well.


This same method works pretty much on every RPM based OS's.

Good Luck

#5 Shinon Yoshida

Shinon Yoshida

    TheBeast

  • Members
  • PipPipPipPipPip
  • 203 posts

Posted 18 April 2012 - 01:40 AM

Of course the installation packages may differ for their names depending on the distro though but since Ubuntu is based on Debian, I'm pretty sure they're the same.

#6 Jman

Jman

    I AM INVINCIBLE!

  • Community Contributors
  • 959 posts

User's Awards

     

Posted 20 April 2012 - 11:36 AM

This may find a home better in the wiki.

Also, in lieu of installing gnome-desktop-environment which would probably install a whole bunch of desktop crap you'll never use, such a mail client, some games, etc. install gnome-core instead.




determination Hosted by SourceForge.net