LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-02-2007, 12:15 PM   #1
launchpadtt
Member
 
Registered: May 2005
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30

Rep: Reputation: 15
remote X logins to solaris & aix


Hello, I just moved my work desktop from Windows to Ubuntu, and have a substitute for all my applications except one. Everyone at my job uses a trial version of a Windows X-server called X-Manager (http://www.download.com/3000-2155_4-10521296.html) to remote login to Solaris desktops and also to run the appropriate terminal so that Solaris and AIX gui based apps will run in windows using x-manager's x-server.

There's got to be a simple way to do this in linux. I just don't know what that is. Any help would be appreciated. I've been running ubuntu for about 2 years but i'd still say that i'm a newbie, it's not like i fear the command line or anything
 
Old 11-02-2007, 12:46 PM   #2
scotlarsen
Member
 
Registered: Sep 2006
Posts: 35

Rep: Reputation: 15
If you're using linux for your desktop it is VERY likely that are you are already running an X server. Your X server is what is already allowing you to server X applications on your localhost (your desktop machine). Try to launch an xterm and:

ssh -X host_you_want_to_access.your_domain

Note: the "-X" argument is to specify X forwarding. It may not be necessary to use it as some ssh clients default to X forwarding on.

Once you've logged in to the remote host you should be able to launch any of the X apps on it and ssh will forward (via an ssh tunnel) to your local display (e.g., you don't need to specify a DISPLAY environment variable).
 
Old 11-02-2007, 12:53 PM   #3
wolfperkins
Member
 
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 110

Rep: Reputation: 16
cygwin (www.cygwin.com) provides all the X-Server functionality for running X type applications on Windows, including the remote desktop if one wishes. I have done that many times to Solaris 8-9-10 and FC from my WinXP PC.

You should also be able to access the remote desktop manager from the local X console on your ubuntu install.
 
Old 11-02-2007, 12:55 PM   #4
launchpadtt
Member
 
Registered: May 2005
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30

Original Poster
Rep: Reputation: 15
will telnet do that, cuz I don't think Solaris and aix have the ssh daemon running by default? Also the .your_domain part would be replaced by my local machine's hostname, right?
 
Old 11-02-2007, 01:11 PM   #5
wolfperkins
Member
 
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 110

Rep: Reputation: 16
I believe all linux/unix distribution nowadays have ssh enabled by default. I have even seen some with no telnet enabled even.

At your ubuntu prompt try this:

Code:
user@ubuntuhost$ ssh -X user@solarishostname
password:
user@solarishostname$ /usr/X11R6/bin/xclock
And the Solaris Xclock window should appear on your desktop. If you type /usr/dt/bin/dtterm, you should get the Solaris Terminal window appear too.
 
Old 11-02-2007, 02:38 PM   #6
launchpadtt
Member
 
Registered: May 2005
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30

Original Poster
Rep: Reputation: 15
I'm not trying to get into another linux machine, but a solaris & aix one. The ssh server isn't running by default on those machines.

Last edited by launchpadtt; 11-02-2007 at 02:42 PM.
 
Old 11-02-2007, 04:06 PM   #7
scotlarsen
Member
 
Registered: Sep 2006
Posts: 35

Rep: Reputation: 15
Quote:
Originally Posted by launchpadtt View Post
will telnet do that, cuz I don't think Solaris and aix have the ssh daemon running by default?
It is possible to use telnet to forward X as well. You will have to setup your DISPLAY environment variable to point to your local machine. For example, if your host is called myhost.mydomain.com and the remote host is called remotehost.mydomain.com, you would telnet to remotehost.mydomain.com and set your DISPLAY variable to something like "myhost.mydomain.com:0". You may also have to allow access to the X server on your local machine by opening up a term and typing something like:

# xhost + remotehost.mydomain.com

or

# xhost + username

You can allow everyone access from anywhere by typing:

# xhost +

(Note that their are security concerns with the last example)

Those commands should be done by root or using sudo, etc.

Quote:
Originally Posted by launchpadtt View Post
Also the .your_domain part would be replaced by my local machine's hostname, right?
You probably don't have to use the fully qualified domain name for the hostnames. You can probably just omit the domain and use only the hostname. In any event, the ".domain" is your domain, e.g., myhost.mydomain.com. Whether or not you have to use your domain depends on a number of factors and is probably off topic so just try it without first and then with it if it doesn't work without it.

BTW - I guess it would be irresponsible of me not give you the "telnet is evil, ssh is your friend" spiel.

Last edited by scotlarsen; 11-02-2007 at 04:14 PM.
 
Old 11-02-2007, 04:15 PM   #8
launchpadtt
Member
 
Registered: May 2005
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30

Original Poster
Rep: Reputation: 15
I know, i know, telnet sucks. It's a lab though so people don't bother setting up machines perfectly most of the time. We're just glad to have things up.
 
Old 11-02-2007, 04:37 PM   #9
scotlarsen
Member
 
Registered: Sep 2006
Posts: 35

Rep: Reputation: 15
I hear ya, man. Enforcing security policies can be like pulling teeth and it may not be your call to do so but it's never a bad idea to remind someone of potential dangers and it's certainly not a bad thing to be reminded yourself, especially if you're glad things are up.

Let us know how it goes.
 
Old 11-07-2007, 05:52 PM   #10
wolfperkins
Member
 
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 110

Rep: Reputation: 16
There must be a way for you to specify a remote X server at login time on your ubuntu workstation.
 
Old 11-09-2007, 05:01 AM   #11
KrahnacK
Member
 
Registered: Nov 2007
Location: /dev/volcano
Posts: 70

Rep: Reputation: 15
Quote:
Originally Posted by wolfperkins View Post
There must be a way for you to specify a remote X server at login time on your ubuntu workstation.
as said wolfperkins, there is a simple way to connect a remote X server at login time. If you use ubuntu, then you should have gnome installed by default and along with gnome comes gdm.

gdm can connect to a remote X server using XDMCP. In order to do that, when at your login screen, just click the "action" button and select "run xdmcp chooser" (i'm not currently on my ubuntu box, but i use gdm so it shouldn't be very different), then you'll have to choose your remote server from the list, or type its IP.

if you don't want to loose your current session, you can also run gdm in an nested X server on your box. shortcuts for me (again, it may be a little different) in gnome are, in the gnome main menu : system tools->new login in a nested window.

hope this helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enable emacs Backspace on remote logins? jkcunningham Linux - General 18 09-21-2009 03:51 PM
Remote Server Setup between Linux(Cent os (BSD)) & Sun Solaris vishalimpact Linux - Newbie 3 09-19-2007 02:55 AM
Solaris 10 & 11 telnet exploit allows remote root chort Solaris / OpenSolaris 3 03-02-2007 02:28 PM
Allow remote root logins using SSH brendanmcdonald Linux - Software 4 03-05-2006 06:03 PM
need some general help with remote logins felixnine Linux - Networking 5 03-01-2006 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration