Wednesday, February 11, 2015

SSH X11-Forwarding Step By Step in Centos-6.x






How to do SSH X11-Forwarding :-


In order to run an application on one CentOS 6 system and have it display on another system there are a couple of prerequisites. Firstly, the system on which the application is to be displayed must be running an X server. If the system is a Mac OS X, UNIX or Linux based system with a desktop environment running then this is no problem. If the system is running Windows, however, then you must install an X server on it before you can display applications from a remote system. A number of commercial and free Windows based X servers are available for this purpose and a web search should provide you with a list of options.
Secondly, the system on which the application is being run (as opposed to the system which the application is to be displayed) must be configured to allow SSH access.

From Server :

Before you start  confirm the below packages are installed in your server. Run this command

Step :1

# rpm -qa xorg-x11-xauth openssh 

This will give a output like this :

xorg-x11-xauth-1.0.2-7.1.el6.x86_64
openssh-5.3p1-104.el6_6.1.x86_64


Step :2

Edit  /etc/ssh/ssh_config file and change ForwardX11 no to ForwardX11 yes

# Vi /etc/ssh/ssh_config

 ForwardX11 yes

:wq!

# service sshd restart
# setenforce 0
# service iptables stop







From Client :

The first step in remotely displaying an application is to move to the system where the application is to be displayed. At this system, ssh into the remote system so that you have a command prompt. This can be achieved using the ssh command. When using the ssh command we need to use the -X flag to tell ssh that we plan to tunnel X traffic through the connection:

# ssh -X user@hostname

In the above example user is the user name to use to log into the remote system and host-name is the host-name or IP address of the remote system. Enter your password at the login prompt. Once logged in, run the following command to see the DISPLAY setting:

# echo $DISPLAY

The command should output something similar to the following:

localhost:10.0

To display an application, simply run it from the command prompt. For example:

# gedit

When run, the above command should run the gedit tool on the remote system, but display the output on the local system.



***** Thanks *****

Wednesday, February 4, 2015

How to install VLC Player on CentOS-6.4






Solution To install VLC Player on CentOS 6.X


Open the terminal and follow the below steps :-

# cd /etc/yum.repos.d/

# wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo

# yum install vlc



To Run VLC Player as "root" user in CentOS Please follow the below steps also :



1) Install "hexedit" utility in linux using yum. The command is,

# yum install hexedit


2) After successful installation, open "/usr/bin/vlc" using hexeditor as given below.

# hexedit /usr/bin/vlc


3) Now, Press "TAB" key

4) Now, Press "Ctrl + S" key to search ASCII string.

5) In the given search box, type "geteuid"

6) Then replace it with "getppid" by just typing "getppid"

6) Now, Press "Ctrl + X" to save the file.

Finally, your VLC player is ready to run as "root" user.


***** Thanks *****

How to install Skype-4.3.0.37 on CentOS-6.4







Step 1 :
To install Skype on Centos first enable EPEL repo. Steps to enable EPEL Repository on CentOS:


# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -ivh epel-release-6-8.noarch.rpm

Step 2 :
Then install the dependency packages for skype 

Note : Is better to run a yum update before the dependency installation.


# yum install libXv*
# yum install libXv.so.1
# yum install libXss.so.1
# yum install qt 
# yum install libQtDBus.so.4
# yum install libQtWebKit.so.4


Step 3 :
Now download and extract Skype source

# cd /usr/src
# wget http://www.skype.com/go/getskype-linux-dynamic
# tar -xjvf skype-4.3.0.37.tar.bz2

# mv skype-4.3.0.37 skype
# cd skype
# ./skype






Step 4 :
After the installation Export the GTK path in ~/.bash_profile 

# vi ~/.bash_profile

export PATH
export GTK2_RC_FILES="/etc/gtk-2.0/gtkrc"

:wq!


 Step 5 :
 Then run
# source ~/.bash_profile 


Now you can open Skype from your terminal
# skype


***** Thanks *****