For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
~~[TUTORIAL]how to set up your VPS[TUTORIAL]~~
#1
as there is alot of querys about this i thought i would aim to make a tutorial to help some of you guys out who are new to the vps scene



today's tutorial is on how to setup your VPS for remote desktop connection.



Hidden Content:
You must reply to see links


today im going to be using CENT OS 6 32bit, as it is a very good and solid Linux distro



[/HR]what i am advising is your specs should be: minimum guaranteed ram of 512 mb and burstable ram of more than 700 mb
but saying that im using 128mb ram at the moment with burst at 500mb and its working like a charm. but for best performance use specs above

[/HR]

Download an install putty . This is a utility which you will use to send remote commands to your vps for installing remote desktop. When you will run putty , it will open a window like the image below, where you enter the ip address of your vps and click on open.

Hidden Content:
You must reply to see links



[/HR] [Image: 1.jpg]
[Image: 2.jpg]


[/HR]
In the next window login as root and supply your root password. This will log you as root into your vps.(you might need to configure your root password from withing you host control panel.)


[/HR] [Image: 3.jpg]
[Image: 4.jpg]

[/HR]
The next steps assume that your centos comes with YUM already installed. You may check if it is installed or not by issuing the following command in ur putty window.

Code:

yum


If the output is something like the image below , then it is ok otherwise contact your hosting provider to install yum for you. They can do it in two seconds and they should have included to start with.


[/HR] [Image: 5.jpg]

[/HR]

Now we are using the command to install genome desktop enviroment which will install a graphical interface on your vps.

copy this and right click in putty and it will paste the info in for you.

Code:

yum groupinstall 'GNOME Desktop Environment' 'X Window System'




this process can take some time, depending on the speed of your vps give it 15minutes and hopefully it should be complete.

once it does complete do the following
Code:

yum update


this will update the system

Now we will install NX/FreeNX server in our vps,
this basically controls our remote desktop connection

Code:

yum install nx freenx


once this has installed run this command to update everything again

Code:

yum update




ok so now we have downloaded and installed everything we need to reboot the machine just to get everything running nice and fresh.
Code:

shutdown -r now



give the vps time to load back up
You will have to close the putty window and again start putty and connect to your server as you did above.


ok now we need to configure the server properly for the remote desktop connection
open the folder location.

Code:

cd /etc/nxserver



now lets view what files are here
Code:

ls



this is what you should see

Code:

client.id_dsa.key node.conf.sample server.id_dsa.pub.key
CR passwords users.id_dsa
node.conf passwords.orig users.id_dsa.pub



the file you want to edit it the node.conf

so we can do this many ways but the way i do it is
vi

Code:

vi node.conf


this will display lots of information about the node.conf file
you want to scroll down(using the down arrow key or pagedown onyour keyboard) through this till you find something saying

Code:

ENABLE_PASSDB_AUTHENTICATION="0"


you then want to edit this and change it to the following

Code:

ENABLE_PASSDB_AUTHENTICATION="1"


to change it to this what would would do
at the start of the line where it has the hash #

press c on you keyboard and then use the arrow keys on your keyboard to scroll to where it says 0 change it to a 1 and then press ctrl + c

then type (this should save the file and quit)

Code:

:wq


if this does not quit the file edit type(this will deffo exit the file)

Code:

:q



now we need to add a user and password for the remote desktop.
type this

Code:

nxserver --adduser (the username here)


you should have something like this

Code:

NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
NX> 716 Public key added to: /home/your username here/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye




ok now that we have added the user we need to add a password to give it abit of security.


first we load the user up
Code:

nxserver --passwd (username here)



then we change the password
Code:

NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
New password: (password here)
Password changed.
NX> 999 Bye



and that should be your password setup for the remote desktop.



now all we have to do is setup the program to connect to our remote vps,

so we need to download nomachine which is what we have configured and setup during this tutorial.

to get nomachine for windows
Hidden Content:
You must reply to see links


[/HR] [Image: 6.jpg]

[/HR]for any other os
Hidden Content:
You must reply to see links

remember to download the client. not the server!



once downloaded, run it and it will show you several bits of information


[/HR] [Image: 7.jpg]

[/HR]

you want to type in a session this will be anything you want to call this connection.

then what you then want to do is type in your server ip, (your ip which you have been using throughout putty this whole time) and keep the port as 22 it will autochange and configure once logged in.


also you want to set your current internet speed ^^ im adsl, so i selected adsl.

once you have configured that follow through till you get this.


[/HR] [Image: 8.jpg]

[/HR]
open up nxmachine and it will produce a log in screen click configure

you want to have the desktop set to gnome,

and then you want to enter your key!

[/HR] [Image: 9.jpg]
[Image: 10.jpg]

[/HR]

to find out what your key is open putty back up and type or copy this

Code:

cat /var/lib/nxserver/home/.ssh/client.id_dsa.key


this will display your key

what you want to do is highlight it all and press ctrl + c
^^ very important!!!!!!


once you have copyed your key go back to nomachine and click key, you want to delete everything in here and paste your key into here and save it.

once you have saved your key close the window and click ok.

log in with the details which you setup up earlier where we created the username and password, and you should be able to log in.


now, if your centos starts to display everything with [][][][][][][][][] rather than text it means that the fonts havnt been installed which is quite a common issue,

[Image: 11.jpg]

go back to putty

type this in

Code:

yum install xorg-x11-fonts-Type1


this will install the fonts for this remote desktop session.

the remote desktop should refresh itself in a few moments and the font should look normal again.


you have reached the end of this tutorial.

thanks for reading

please give thanks if this helped at all, and if there is any spelling mistakes or errors please inform me, trying to type with one hand and hold baby in other isnt easy.
Need help ! just ping me Blackhat
Jabber : c0defire@xmpp.jp
ICQ : 701491310

Reply
For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp
#2
nice work bro really looks cool i would on server
Reply
#3
Nice share..Im eager of it
Reply
#4
(08-20-2012, 12:00 AM)Codefire Wrote:  as there is alot of querys about this i  thought i would aim to make a tutorial to help some of you guys out who  are new to the vps scene



today's tutorial is on how to setup your VPS for remote desktop connection.





today im going to be using CENT OS 6 32bit,  as it is a very good and solid Linux distro



[/HR]what i am advising is your specs should be: minimum guaranteed ram of 512 mb and burstable ram of more than 700 mb
but saying that im using 128mb ram at the moment with burst at 500mb and  its working like a charm. but for best performance use specs above


[/HR]

Download an install putty  . This is a utility which you will use to send remote commands to your  vps for installing remote desktop. When you will run putty , it will  open a window like the image below, where you enter the ip address of  your vps and click on open.





[/HR] [Image: 1.jpg]
[Image: 2.jpg]



[/HR]
In the next window login as root and supply your root password. This  will log you as root into your vps.(you might need to configure your  root password from withing you host control panel.)



[/HR] [Image: 3.jpg]
[Image: 4.jpg]


[/HR]
The next steps assume that your centos comes with YUM already installed. You may check if it is installed or not by issuing the following command in ur putty window.

Code:

yum


If the output is something like the image below , then it is ok  otherwise contact your hosting provider to install yum for you. They can  do it in two seconds and they should have included to start with.



[/HR] [Image: 5.jpg]


[/HR]

Now we are using the command to install genome desktop enviroment which will install a graphical interface on your vps.

copy this and right click in putty and it will paste the info in for you.

Code:

yum groupinstall 'GNOME Desktop Environment' 'X Window System'




this process can take some time, depending on the speed of your vps give it 15minutes and hopefully it should be complete.

once it does complete do the following
Code:

yum update


this will update the system

Now we will install NX/FreeNX server in our vps,
this basically controls our remote desktop connection

Code:

yum install nx freenx


once this has installed run this command to update everything again

Code:

yum update




ok so now we have downloaded and installed everything we need to reboot  the machine just to get everything running nice and fresh.
Code:

shutdown -r now



give the vps time to load back up
You will have to close the putty window and again start putty and connect to your server as you did above.


ok now we need to configure the server properly for the remote desktop connection
open the folder location.

Code:

cd /etc/nxserver



now lets view what files are here
Code:

ls



this is what you should see

Code:

client.id_dsa.key  node.conf.sample  server.id_dsa.pub.key
CR                 passwords         users.id_dsa
node.conf          passwords.orig    users.id_dsa.pub



the file you want to edit it the node.conf

so we can do this many ways but the way i do it is
vi

Code:

vi node.conf


this will display lots of information about the node.conf file
you want to scroll down(using the down arrow key or pagedown onyour keyboard) through this till you find something saying

Code:

ENABLE_PASSDB_AUTHENTICATION="0"


you then want to edit this and change it to the following

Code:

ENABLE_PASSDB_AUTHENTICATION="1"


to change it to this what would would do
at the start of the line where it has the hash #

press c on you keyboard and then use the arrow keys on your keyboard to  scroll to where it says 0 change it to a 1 and then press ctrl + c

then type (this should save the file and quit)

Code:

:wq


if this does not quit the file edit type(this will deffo exit the file)

Code:

:q



now we need to add a user and password for the remote desktop.
type this

Code:

nxserver --adduser (the username here)


you should have something like this

Code:

NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
NX> 716 Public key added to: /home/your username here/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye




ok now that we have added the user we need to add a password to give it abit of security.


first we load the user up
Code:

nxserver --passwd (username here)



then we change the password
Code:

NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
New password: (password here)
Password changed.
NX> 999 Bye



and that should be your password setup for the remote desktop.



now all we have to do is setup the program to connect to our remote vps,

so we need to download nomachine which is what we have configured and setup during this tutorial.

to get nomachine for windows


[/HR] [Image: 6.jpg]


[/HR]for any other os
remember to download the client. not the server!



once downloaded, run it and it will show you several bits of information



[/HR] [Image: 7.jpg]


[/HR]

you want to type in a session this will be anything you want to call this connection.

then what you then want to do is type in your server ip, (your ip which  you have been using throughout putty this whole time) and keep the port  as 22 it will autochange and configure once logged in.


also you want to set your current internet speed ^^ im adsl, so i selected adsl.

once you have configured that follow through till you get this.



[/HR] [Image: 8.jpg]


[/HR]
open up nxmachine and it will produce a log in screen click configure

you want to have the desktop set to gnome,

and then you want to enter your key!


[/HR] [Image: 9.jpg]
[Image: 10.jpg]


[/HR]

to find out what your key is open putty back up and type or copy this

Code:

cat /var/lib/nxserver/home/.ssh/client.id_dsa.key


this will display your key

what you want to do is highlight it all and press ctrl + c
^^ very important!!!!!!


once you have copyed your key go back to nomachine and click key, you  want to delete everything in here and paste your key into here and save  it.

once you have saved your key close the window and click ok.

log in with the details which you setup up earlier where we created the username and password, and you should be able to log in.


now, if your centos starts to display everything with [][][][][][][][][]  rather than text it means that the fonts havnt been installed which is  quite a common issue,

[Image: 11.jpg]

go back to putty

type this in

Code:

yum install xorg-x11-fonts-Type1


this will install the fonts for this remote desktop session.

the remote desktop should refresh itself in a few moments and the font should look normal again.


you have reached the end of this tutorial.

thanks for reading

please give thanks if this helped at all, and if there is any spelling  mistakes or errors please inform me, trying to type with one hand and  hold baby in other isnt easy.
Reply
#5
Let me see!! Thank you for share.
Reply
#6
thanks bro for toturial
Reply
For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp
#7
thank you very much you helped me alot
Reply
#8
thanks bro for toturial
Reply
 


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Advanced] How to protect your server from DDoS Attack [Tutorial] Codefire 2 1,852 06-18-2013, 07:09 PM
Last Post: Pratham

Forum Jump:


Users browsing this thread: 1 Guest(s)
For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp

About Offensive Community

Offensive Community is a world best underground hacking forum that provides tutorials, latest hacking techniques, free tools and a great online teaching to our members. Join the forum Now.

Feel free to join our community.