Search This Blog

Wednesday, September 23, 2015

X2Go Server installation


http://wiki.x2go.org/doku.php/doc:installation:x2goserver

Please see X2Go's Server Core for detailed documentation.

Ubuntu

Quick

You might have to install add-apt-repository first.
To install add-apt-repository on Ubuntu 10.04 or 12.04:
sudo apt-get install python-software-properties
To install add-apt-repository on Ubuntu 14.04:
sudo apt-get install software-properties-common
Once add-apt-repository is installed, run these commands:
sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession

Detailed

After adding the X2Go PPA to your remote Ubuntu “desktop” server the next step is to install the packages x2goserver and x2goserver-xsession:
sudo apt-get install x2goserver x2goserver-xsession

**********************

I added below lines 

Now install xfce desktop environment

sudo apt-get install xfce4

X2Go connection with Ubuntu desktop

sudo add-apt-get-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goclient

After this, open X2go client in desktop and give following details

Session name: any
host ip
login: user
ssh port: 22
Session type: XFCE

Give user credentials.


Debian

sudo apt-get install x2goserver x2goserver-xsession

Gentoo

Currently X2Go cannot connect to an openssh server compiled with the HPN patch. To make sure x2goserver works on your Gentoo server, you must recompile net-misc/openssh with HPN support disabled. Add the following line to /etc/portage/packages.use:
net-misc/openssh -hpn
Then recompile net-misc/openssh, update the configuration file, and restart the sshd server, as follows:
emerge -1 net-misc/openssh
dispatch-conf
/etc/init.d/sshd restart
Then, install net-misc/x2goserver .

Fedora 19 and later

No additional repositories required:
sudo yum install x2goserver

RHEL 7

Add the EPEL repository:
Check that you have activated the “optional” channel:
sudo subscription-manager repos --list
If the optional channel for your base channel is not active, activate it.
sudo subscription-manager repos --enable=rhel-7-server-optional-rpms
Or use the RHNS web interface to activate the channel “RHEL Server Optional”
Then
sudo yum install x2goserver

RHEL 6

There are two sources for X2Go packages for RHEL 6 - our packages repository and Fedora EPEL.
Select one method only and follow adding X2Go to RedHat to configure the repository of your choice.

Activating Optional Channels for RHEL

Check that you have activated the “optional” channel:
sudo rhn-channel -l
If the optional channel for your base channel is not active, activate it.
sudo rhn-channel --add -c rhel-x86_64-server-optional-6

Installing sshfs (fuse)

Currently, even in the optional channel, there is no official package for sshfs and it is not (yet?) included in the X2Go repo. Thus it has to be downloaded form an alternate source:

Option 1: Download the package manually

sudo yum install fuse fuse-libs
wget http://pkgs.repoforge.org/fuse-sshfs/fuse-sshfs-2.2-1.el6.rf.x86_64.rpm
sudo rpm -i --nosignature fuse-sshfs-2.2-1.el6.rf.x86_64.rpm

Option 2: Install EPEL

URL to most recent EPEL repo installation package available here
wget http://mirror01.th.ifl.net/epel/6/i386/epel-release-6-7.noarch.rpm
sudo rpm -i epel-release-6-7.noarch.rpm
sudo yum install fuse-sshfs

Installing X2Go Server

You should now be able to install the x2goserver package:
sudo yum install x2goserver
if you are installing from EPEL6 or EPEL7, install the x2goserver-xsession package also:
sudo yum install x2goserver-xsession

EPEL 5 (via Opensuse Build Service)

Add the X2Go repo to your yum configuration using tag RHEL_5.

Installing Required Dependencies (fuse and perl modules)

Download required packages manually

One approach is to download required packages manually. Yum will tell you what is needed, when you ask it to install x2goserver.
  • perl(File::BaseDir) - perl-File-BaseDir-0.03-1.el5.noarch.rpm
  • perl(Sys::Syslog) - perl-Sys-Syslog-0.27-1.el5.x86_64.rpm
  • fuse - fuse-2.7.4-8.el5.x86_64.rpm
  • libfuse.so.2 - fuse-libs-2.7.4-8.el5.x86_64.rpm
  • fuse-sshfs - fuse-sshfs-2.2-1.el5.rf.x86_64.rpm
  • rpm -i –nosignature perl-File-BaseDir-0.03-1.el5.noarch.rpm perl-Sys-Syslog-0.27-1.el5.x86_64.rpm
  • rpm -i –nosignature fuse-sshfs-2.2-1.el5.rf.x86_64.rpm fuse-libs-2.7.4-8.el5.x86_64.rpm fuse-2.7.4-8.el5.x86_64.rpm

Installing X2Go Server

You should now be able to install the x2goserver package:
yum install x2goserver
Unfortunately, in my case I get an error when x2goserver is being installed:
Running Transaction
  Installing: libXcomp3                    ####################### [ 1/24] 
  Installing: libNX_X11-6                  ####################### [ 2/24] 
  Installing: libNX_Xext6                  ####################### [ 3/24] 
  Installing: libNX_Xrender1               ####################### [ 4/24] 
  Installing: libNX_Xrandr2                ####################### [ 5/24] 
  Installing: libNX_Xtst6                  ####################### [ 6/24] 
  Installing: libNX_Xdamage1               ####################### [ 7/24] 
  Installing: makepasswd                   ####################### [ 8/24] 
  Installing: libXcompshad3                ####################### [ 9/24] 
  Installing: libNX_Xpm4                   ####################### [10/24] 
  Installing: libNX_Xinerama1              ####################### [11/24] 
  Installing: libXcompext3                 ####################### [12/24] 
  Installing: libNX_freetype6              ####################### [13/24] 
  Installing: libNX_Xfixes3                ####################### [14/24] 
  Installing: libNX_Xdmcp6                 ####################### [15/24] 
  Installing: libNX_Xcomposite1            ####################### [16/24] 
  Installing: perl-DBI                     ####################### [17/24] 
  Installing: perl-DBD-Pg                  ####################### [18/24] 
  Installing: perl-DBD-SQLite              ####################### [19/24] 
  Installing: perl-Config-Simple           ####################### [20/24] 
  Installing: nxagent                      ####################### [21/24] 
  Installing: x2goserver                   ####################### [22/24] 
"make_path" is not exported by the File::Path module
Can't continue after import errors at /usr/sbin/x2godbadmin line 25
BEGIN failed--compilation aborted at /usr/sbin/x2godbadmin line 25.
chgrp: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory
chmod: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory
  Installing: x2goagent                    ####################### [23/24] 
  Installing: x2goserver                   ####################### [24/24] 
"make_path" is not exported by the File::Path module
Can't continue after import errors at /usr/sbin/x2godbadmin line 25
BEGIN failed--compilation aborted at /usr/sbin/x2godbadmin line 25.
chgrp: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory
chmod: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory

Installed: x2goserver.i386 0:4.0.1.6-1.1 x2goserver.x86_64 0:4.0.1.6-1.1
Dependency Installed: libNX_X11-6.x86_64 0:3.5.0.20-4.1 libNX_Xcomposite1.x86_64 0:3.5.0.20-4.1 libNX_Xdamage1.x86_64 0:3.5.0.20-4.1 libNX_Xdmcp6.x86_64 0:3.5.0.20-4.1 libNX_Xext6.x86_64 0:3.5.0.20-4.1 libNX_Xfixes3.x86_64 0:3.5.0.20-4.1 libNX_Xinerama1.x86_64 0:3.5.0.20-4.1 libNX_Xpm4.x86_64 0:3.5.0.20-4.1 libNX_Xrandr2.x86_64 0:3.5.0.20-4.1 libNX_Xrender1.x86_64 0:3.5.0.20-4.1 libNX_Xtst6.x86_64 0:3.5.0.20-4.1 libNX_freetype6.x86_64 0:3.5.0.20-4.1 libXcomp3.x86_64 0:3.5.0.20-4.1 libXcompext3.x86_64 0:3.5.0.20-4.1 libXcompshad3.x86_64 0:3.5.0.20-4.1 makepasswd.x86_64 0:0.5.0-2.2 nxagent.x86_64 0:3.5.0.20-4.1 perl-Config-Simple.x86_64 0:4.59-14.1 perl-DBD-Pg.x86_64 0:1.49-1.fc6 perl-DBD-SQLite.x86_64 0:1.37-26.1 perl-DBI.x86_64 0:1.617-8.1 x2goagent.x86_64 0:3.5.0.20-4.1
Complete!
Despite being installed x2goserver is dysfunctional afterwards. On connection it yields an error:
Verbindung fehlgeschlagen DBD::SQLite::db prepare failed: no such table: sessions at /usr/libexec/x2go/x2gosqlitewrapper.pl line 423. Can't call method "execute" on an undefined value at /usr/libexec/x2go/x2gosqlitewrapper.pl line 431. 

EPEL 5 (via packages.x2go.org)

Due to bug#714, currently yum will not tell you what is needed.
Add the X2Go repo to your yum configuration by following the steps on that page.

Installing Required Dependencies (fuse and perl modules)

Download required packages manually

One approach is to download required packages manually. Yum will tell you what is needed, when you ask it to install x2goserver.
  • perl(DBI::db) - perl-DBI-1.615-2.x86_64.rpm
  • perl(File::BaseDir) - perl-File-BaseDir-0.03-1.el5.noarch.rpm
  • perl(Sys::Syslog) - perl-Sys-Syslog-0.27-1.el5.x86_64.rpm
  • fuse - fuse-2.7.4-8.el5.x86_64.rpm
  • libfuse.so.2 - fuse-libs-2.7.4-8.el5.x86_64.rpm
  • fuse-sshfs - fuse-sshfs-2.2-1.el5.rf.x86_64.rpm
  • rpm -i –nosignature perl-DBI-1.615-2.x86_64.rpm perl-File-BaseDir-0.03-1.el5.noarch.rpm perl-Sys-Syslog-0.27-1.el5.x86_64.rpm
  • rpm -i –nosignature fuse-sshfs-2.2-1.el5.rf.x86_64.rpm fuse-libs-2.7.4-8.el5.x86_64.rpm fuse-2.7.4-8.el5.x86_64.

Installing X2Go Server

You should now be able to install the x2goserver & x2goserver-xsession packages:
yum install x2goserver

SUSE

Adding Repositories

Release Version

SLES/SLED
zypper ar http://packages.x2go.org/sle/<distro-version>/extras x2go-extras
zypper ar http://packages.x2go.org/sle/<distro-version>/main x2go-release
OpenSUSE
zypper ar http://packages.x2go.org/opensuse/<distro-version>/extras x2go-extras
zypper ar http://packages.x2go.org/opensuse/<distro-version>/main x2go-release

Nightly Version

SLES/SLED
zypper ar http://packages.x2go.org/sle/<distro-version>/extras x2go-extras
zypper ar http://packages.x2go.org/sle/<distro-version>/heuler x2go-nightly
OpenSUSE
zypper ar http://packages.x2go.org/opensuse/<distro-version>/extras x2go-extras
zypper ar http://packages.x2go.org/opensuse/<distro-version>/heuler x2go-nightly

Installing X2GoServer

zypper install x2goserver

Workaround for Qt-based Applications and sudo/kdesu

Please keep this section in sync with the README.sudoers file in our packages!

Problem Description

OpenSUSE 11 and SLES/SLED 11 do not support /etc/sudoers.d as a place for custom sudoers config files.
If you are using any of these distributions and are having issues regarding running Qt applications with elevated privileges (e.g., via kdesu or sudo), please use this workaround.

Necessary Actions

  1. Copy the contents of the “x2goserver” file residing in the documentation directory /usr/share/doc/packages/x2goserver.
  2. Get elevated privileges. Either via
    su
    or
    sudo -i
  3. Launch
    visudo
  4. Paste the previously copied content at the end of the sudoers file.
  5. Save and exit your editor.

Arch Linux

x2goserver is available in the extra repo.

Monday, March 30, 2015

Installing Google Chrome in Ubuntu Linux

google-chrome-stable is availeble on 3rd Party Repository: Google Chrome (For Stable).
Follow the instruction for installation:
  1. Add Key:
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
    
  2. Set repository:
    sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    
  3. Install package:
    sudo apt-get update 
    sudo apt-get install google-chrome-stable 
     
    From 
     
    http://askubuntu.com/questions/510056/how-to-install-google-chrome-on-ubuntu-14-04 
     
     
     
     
     
     
     

    Order from Amazon.in after becoming a member by clicking here

Wednesday, January 21, 2015

X11 Forwarding over SSH: run remote graphical app and display locally

X11 Forwarding over SSH: run remote graphical app and display locally 

 

Copied from  http://linuxcommando.blogspot.in/2013/05/x11-forwarding-over-ssh-run-remote.html

In the modern networked environment, we often wish to run an application on a remote host while we are comfortably logged in on our local computer.
Assuming both machines are Linux-based, and the application runs on the graphical X desktop, the following approaches come to mind:
  • VNC
  • X11 forwarding over SSH
This article focuses only on X11 forwarding. X11 forwarding over SSH enables you to run a remote X app and display it locally, with traffic between the 2 hosts encrypted by SSH.
For X11 forwarding over SSH to work, both the SSH client and SSH server must be properly configured.
X11 forwarding must be enabled on The SSH server side. This is the machine where the application resides. To enable the feature, make sure the X11 configuration file /etc/ssh/sshd_config on the server contains this line:
X11Forwarding yes
If you edit the said file, you need to restart the sshd daemon for the change to take effect.
On Debian or Ubuntu systems, you restart the SSH daemon like this:
$ sudo service ssh restart
[ ok ] Restarting OpenBSD Secure Shell server: sshd.
$
On the ssh client side, you need to run SSH command with the proper parameters. For instance, suppose you want to run the xclock application on the remote SSH server and have it displayed back on the local client.
$ ssh -fX peter@192.168.1.112 xclock 
peter@192.168.1.112's password: 
$
The -X parameter allows an one-off X11 forwarding session.
The -f parameter instructs the SSH client to go to the background just before xclock is run.
If you want to permanently enable X11 forwarding for an user, insert this line in the user's own ~/.ssh/config file on the local host.
ForwardX11 yes 
With X11 forwarding permanently enabled for the client, you can leave out the -X parameter:
$ ssh -f peter@192.168.1.112 xclock 
peter@192.168.1.112's password: 
$
If X11 forwarding is not enabled on the SSH server, any attempt to tunnel X11 will fail with the following error message:
$ ssh -X peter@192.168.1.112 xclock 
peter@192.168.1.112's password: 
X11 forwarding request failed on channel 0
Error: Can't open display: 
$
If X11 forwarding is properly enabled on the server side, you will see a nice looking clock displayed on your local screen.