Tag Archives: OS

RDP (Remote Desktop Protocol) on Linux

Its very easy to setup RDP on Linux based OS. No need any kind of VNC or extra software for using RDP server. Simply use as Windows RDP. Follow below steps.

  • Install fresh Ubuntu 12.04 or 12.10. 32 or 64 Bit
  • Login SSH and run following command.
  • sudo apt-get update && apt-get upgrade
  • sudo apt-get install xubuntu-desktop
  • sudo apt-get install xrdp

Now you are ready to use your Linux RDP 🙂

Install Kloxo-MR

Install Kloxo-MR (fresh and tested)

Install a fresh OS of CentOS 5.xx

Follow below command
=================================================================================================

cd /
yum update -y

yum install yum-utils yum-priorities vim-minimal subversion curl zip unzip -y

yum install telnet -y

setenforce 0
echo ‘SELINUX=disabled’ > /etc/selinux/config

cd /etc/yum.repos.d/
wget https://github.com/mustafaramadhan/kloxo/raw/release/kloxo-mr.repo –no-check-certificate
cd /
yum install kloxomr -y

sh /script/upcp -y

 

N.B. Kloxo supported only CentOS 5.xx and after install default admin user/pass is admin/admin

How to install pptp VPN on CentOS, RedHat and Ubuntu

Point-to-Point Tunneling Protocol

The Point-to-Point Tunneling Protocol (PPTP) is a method for implementing virtual private networks. PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.
The PPTP specification does not describe encryption or authentication features and relies on the Point-to-Point Protocol being tunneled to implement security functionality. However the most common PPTP implementation, shipping with the Microsoft Windows product families, implements various levels of authentication and encryption natively as standard features of the Windows PPTP stack. The intended use of this protocol is to provide similar levels of security and remote access as typical VPN products.

Step 1. Install PPTPD
If your OS is CentOS/RedHat 5:

yum install pppcd
/usr/local/src
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
rpm -Uhv pptpd-1.3.4-2.rhel5.x86_64.rpm

Restoring The Database via SSH/Telnet

Use SSH/Telnet Client, such as PuTTy.
Note:
If your database backup resides on your home computer, you will first have to upload it via FTP to your website
Open your SSH/Telnet client and log into your website. The command line prompt you will see will vary by OS. For most hosting companies, this will bring you into the FTP root folder.

You can either change directoties to wherever the backup is located and type in the following:

mysql -u dbusername -p databasename < backupname.sql

Or if you do not want to change directories and you know the path to where the backup is located, type in the following:

mysql -u dbusername -p databasename < /path/to/backupname.sql

You will be prompted for the database password. Enter it and the database will backup.

If your hosting company has you on a remote MySQL server, such as mysql.yourhost.com, you will need to add the servername to the command line. The servername will be the same as in your config.php. The command line will be:

mysql -h servername -u dbusername -p databasename < backupname.sql

Or:

mysql -h servername -u dbusername -p databasename < /path/to/backupname.sql

Backing Up The Database via SSH/Telnet

Use SSH/Telnet Client, such as PuTTy.

Open your SSH/Telnet client and log into your website. The command line prompt you will see will vary by OS.
For most hosting companies, this will bring you into the FTP root folder.

Type in the following to create a backup in the current directory:

mysqldump –opt -Q -u dbusername -p databasename > backupname.sql

Or to create a backup in a separate directory (signified by /path/to/) type:

mysqldump –opt -Q -u dbusername -p databasename > /path/to/backupname.sql

You will be prompted for the database password. Enter it and the database will backup.

If your hosting company has you on a remote MySQL server, such as mysql.yourhost.com, you will need to add the servername to the command line. The servername will be the same as in your config.php. The command line will be:

Current directory:

mysqldump –opt -Q -h servername -u dbusername -p databasename > backupname.sql

Separate directory:

mysqldump –opt -Q -h servername -u dbusername -p databasename > /path/to/backupname.sql

You can then, if you wish, download the backup to your home computer.