Showing posts with label help. Show all posts
Showing posts with label help. Show all posts

Friday, 5 April 2013

Run your own Dedicated Ventrilo Server on VPS

Run your own Dedicated Ventrilo Server on VPS


Now that you have FTP set up it is very simple to get your own Ventrilo server set up. First go to the Official Ventrilo Download page and download the linux server program to your computer with your FTP client. Connect to your server via FTP and transfer the file you downloaded to your VPS server. If you have not set up root access to the FTP server you will only be able to transfer it to the user you logged in as.

Once the file has been transferred you should create a folder to run it. To do this log in as root:

su

Go to the directory you wish to run Ventrilo, I will use the top directory:

cd ..

Create a Ventrilo directory:

mkdir Ventrilo

Copy the file you transferred via FTP to the newly created Ventrilo folder. This may change depending on where you transferred the file:

cp /home/user/ventrilo_srv-3.0.3-Linux-i386.tar.gz /Ventrilo

Navigate to the Ventrilo directory you created using the cd command. Run the commands below to extract the file:

gunzip/ventrilo_srv-3.0.3-Linux-i386.tar.gz

tar xf/ventrilo_srv-3.0.3-Linux-i386.tar

Change into the directory that was created during extraction and run the command:

./ventrilo_srv

Your Ventrilo server should now be running with default values! You can connect to the server using the Ventrilo client and using your IP Address as the host. To change the settings you can edit the ventrilo_srv.ini file.

Note: If you close the console connection the Ventrilo process will also stop. An easy way to get around this is to log into the VNC and open a terminal window from within GNOME. Run the same command to start the Ventrilo server and close the connect with VNC. The terminal window will still be running in the GUI and the server will stay up.

If you have any questions or comments feel free to post them below.

Thanks!

Thursday, 4 April 2013

Setup VNC to Access GNOME Desktop on CentOS 6

Setup VNC to Access GNOME Desktop on CentOS 6 using UltraVNCViewer


Now that you have your VPS running and have set up FTP access you may want to move away from using command line and start to use a GUI. To do this you must install a Desktop Environment and VNC service. For this tutorial I will be using GNOME Desktop Environment and tigervnc.

Install and set up VNC


Start off by logging into root with the command

su

After correctly entering the password you should be logged in as root. Now run the command

yum install tigervnc-server

and enter y when prompted.

You should see Complete! when the server is successfully installed.

Log into the user you wish to access VNC with using the command:

su username

Create a VNC password for the user with the command

vncpasswd

You will be prompted to create and verify a password that you will use to log in to VNC with.

You now need to edit the VNC configuration file. For this you need to use a command line text editor. CentOS comes with vi for editing files however many people find nano easier to use. For this tutorial I will use vi however you may use whichever is easiest. (nano can be installed as root with the command yum install nano).

Open /etc/sysconfig/vncservers in vi with the command:

vi /etc/sysconfig/vncservers

You will now be in the vi editor with the file vncservers open. You can use the arrow keys to move around the file. To edit the file press i. You need to change the lines:


# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
to:

VNCSERVERS="1:username"
VNCSERVERARGS[1]="-geometry 800x600"

Replacing username with the username you assigned the VNC password to above. Once you have made these changes press escape, then type :x and press enter. This should save the file and exit vi. To confirm you have made the changes use the command:

cat /etc/sysconfig/vncservers

And you should see the changes.

Install GNOME Desktop Environment


To install the GNOME Desktop Environment enter the command as root:

yum installgroup "Desktop"

Press y and enter when prompted. If successful you should see Complete!

Start the VNC Service and Connect

Start the VNC Service with the command:

service vncserver start

You should see a success message if the service has started successfully.

To connect to the VNC Service I am using UltraVNCViewer. You can download this from here. Open UltraVNCViewer and you should see this screen:


Enter the IP Address of your server next to VNC Server: and add :1 to the end to indicate the port number.

Press connect and you should be prompted for a password. Enter the password you used for the VNC Password and you should connect. You should now be displayed a GUI as shown below:


Congratulations! You have now got your desktop and VNC successfully running. Now you can use the GUI to install new software instead of using the command line.

Note: If you attempt to connect to the VNC Server and it is just a black square try and restart the server. This has helped before.

If you have any comments or questions feel free to leave them below.

Thanks!

Setting up FTP on VPS

Setting up FTP on VPS

Setting up and FTP service on your server can be very useful if you wish to use the server to remotely store files. This tutorial will show you step by step how to set up FTP on your VPS so you can connect to it using any FTP client.

Installing

To have FTP access to your server you must first install the FTP software. Log in to your VPS and type in 

su

This is the command to switch user into the root user and you will be prompted for a password. Once you have entered the password check you are root by looking at the command line, it should look like:

[root@hostname username]#

Now install the FTP server with the command:

yum install vsftpd

Enter y when prompted and you should see Complete! once the service has successfully been installed. If you wish to configure the FTP service you can edit the file /etc/vsftpd/vsftpd.conf however the default settings will allow you to connect using the user account you have created.

Now that the server is installed you must run the service, to do this enter the command:

service vsftpd start

If successful you will see:

Starting vsftpd for vsftpd:              [  OK  ]

The FTP service is now running and you are able to connect to it. 

su username

Will take you out of root and into your user account again.


Connecting to FTP server

To connect to your FTP server you must install FTP client software on the computer you trying to access the server from. You can use any FTP client you wish however I will be using FireFTP, a Firefox addon as my client. You can download the addon from fireftp.net. After installed, restart Firefox and open FireFTP by selecting the Firefox button at the top left, Web Developer, FireFTP. A new tab should open similar to this:


Select create an account in the top left and a box should pop up. Enter the IP address of the server next to host and use the user account and password you created for the Login and Password boxes. Once completed it should look similar to:


Click OK and in the top left you should now have the option to connect to the account you just created. Press connect and as long as the details you entered were correct you should connect to the FTP server as shown below:


The left side is your computer and the right is the server. To transfer a file to the server select the file in the left side and choose a destination on the right side. Select the arrow pointing to the right while your file you wish to transfer is selected and the file will be transferred to the server.

Congratulations, you have successfully set up FTP!

Note: By default you will not be able to access the server as root. This can however be changed by editing the file /etc/vsftpd/user_list and removing root from the list. After doing this and restarting the service (service  vsftpd restart) you should be able to log in as root.

If you have any questions on comments feel free to ask them!

Thanks