Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Rep:
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
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).
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.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Original Poster
Rep:
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?
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
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.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Original Poster
Rep:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.