LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2014, 07:29 AM   #1
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
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.
 
Old 02-26-2014, 08:15 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,448

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
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.
Old 02-26-2014, 08:21 AM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228Reputation: 2228
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.
 
Old 02-26-2014, 08:55 AM   #4
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by allend View Post
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.
 
Old 02-26-2014, 09:04 AM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,225

Rep: Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793Reputation: 1793
Quote:
Originally Posted by statguy View Post
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.
 
Old 02-26-2014, 09:08 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,448

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
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
 
Old 02-26-2014, 09:10 AM   #7
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Rep: Reputation: Disabled
maybe look at x11vnc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] SSH remote command: Pipe remote output to local machine? kenneho Linux - Server 6 12-06-2012 01:37 AM
mounting samba filesystem on remote machine as /home on local machine shishirkotkar Linux - Software 1 04-28-2008 05:05 AM
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM
Complicated one: MySQL, rsync, remote machine, local machine daiver Linux - General 2 02-27-2006 12:14 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:37 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