Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-26-2014, 07:29 AM
|
#1
|
Member
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416
Rep:
|
Using X for remote connections but not on the local machine
Hello.
Here is my problem and question.
I have an old machine at home running Slack 12.2. Recently the graphics card got partially zorched so that X will not start (computer freezes). I have set the run level to 3 and it is working fine in CLI mode. But, up to this point when I have wanted to log into that machine at home I have remoted in via XDCMP using cygwin on a windows box. Now that the Slack box is in CLI mode it, obviously, does not respond to XDCMP.
That brings me to my question. Is it possible to make the xdm (kdm) listen for remote connection requests when X is not actually trying to manage the local display?
I know the obvious solution is to replace the graphics card. Well, the computer is of a vintage that only has AGP graphics and I'm a little dubious about finding a compatible card these days.
I hope my question makes sense.
|
|
|
02-26-2014, 08:15 AM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,448
|
You could use ssh from within Cygwin on the Windows box to connect to the Slack 12.2 box. If you enable X11 forwarding over ssh on the Slackware 12.2 box, then you can start an application requiring X and have that run in a Cygwin GUI session.
As an example, here is a PC booted with Windows7 that is running Windowmaker within Cygwin. A ssh connection has been made to a PC running Slackware and a KDE session was started using 'startkde'. http://www.linuxquestions.org/questi...ml#post5050179
To enable X11 forwarding, you need an addition to /etc/ssh/sshd_config
Code:
Match User <username>
X11Forwarding yes
|
|
1 members found this post helpful.
|
02-26-2014, 08:21 AM
|
#3
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
allend has a much better answer than what I wrote below. I'm leaving the below for the record.
---
man Xfvb
I think the man page tells you how to start it also. You'll probably find the performance to be painful.
On the other hand, you could ssh into that server via putty (which is a free Windows ssh client). I log into linux servers that way *all* the time at the Day Job.
Last edited by Richard Cranium; 02-26-2014 at 08:24 AM.
Reason: This is not the best answer.
|
|
|
02-26-2014, 08:55 AM
|
#4
|
Member
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416
Original Poster
Rep:
|
Quote:
Originally Posted by allend
You could use ssh from within Cygwin on the Windows box to connect to the Slack 12.2 box. If you enable X11 forwarding over ssh on the Slackware 12.2 box, then you can start an application requiring X and have that run in a Cygwin GUI session.
As an example, here is a PC booted with Windows7 that is running Windowmaker within Cygwin. A ssh connection has been made to a PC running Slackware and a KDE session was started using 'startkde'. http://www.linuxquestions.org/questi...ml#post5050179
To enable X11 forwarding, you need an addition to /etc/ssh/sshd_config
Code:
Match User <username>
X11Forwarding yes
|
Thanks, that's a good idea. I set the X11 forwarding already in my Slack box a long time ago.
One follow-up question. Would I need to have started the X server in cygwin before doing the startkde? I assume I would. I guess I would also need to run ssh with one of the X-forward options too.
|
|
|
02-26-2014, 09:04 AM
|
#5
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,225
|
Quote:
Originally Posted by statguy
Hello.
Here is my problem and question.
I have an old machine at home running Slack 12.2. Recently the graphics card got partially zorched so that X will not start (computer freezes). I have set the run level to 3 and it is working fine in CLI mode. But, up to this point when I have wanted to log into that machine at home I have remoted in via XDCMP using cygwin on a windows box. Now that the Slack box is in CLI mode it, obviously, does not respond to XDCMP.
That brings me to my question. Is it possible to make the xdm (kdm) listen for remote connection requests when X is not actually trying to manage the local display?
|
Another way to do it would be to install TightVNC server and SSH in to the machine to start a vncserver session, which doesn't need X running.
Just issue the command vncserver to start the VNC session, and then use a VNC client on Windows, with the address dependent on the virtual terminal reported when you started the vncserver.
e.g., 192.168.1.100:5901 if it starts at :1, 192.168.1.100:5902 if it starts at :2, and so on.
|
|
|
02-26-2014, 09:08 AM
|
#6
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,448
|
Quote:
One follow-up question. Would I need to have started the X server in cygwin before doing the startkde? I assume I would.
|
Yes, X needs to available on the receiving box.
Quote:
I guess I would also need to run ssh with one of the X-forward options too.
|
Yes, add the -Y option when using ssh
|
|
|
02-26-2014, 09:10 AM
|
#7
|
Member
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174
Rep:
|
maybe look at x11vnc
|
|
|
All times are GMT -5. The time now is 10:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|