SlackwareThis 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.
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.
I ssh into another machine.
I login and a user (not root)
I run startx
When I logout, x closes
I want it to stay open.
For now, I was able to:
ssh into another machine.
Login as root
run kdm
but kdm requires a username and password
(I know I can do automatic logins, but that isn't and option for what I wat to do)
What I'd like to do is execute a command from pts/1 and have it run from tty1.
Ultimately I'd like to run a command from the console and have it wind up on :0 (ie, KDE is up and running and I want to open krfb from the remote console.) Now if I were on the machine locally, I could open konsole, execute krfb, and it would open in the GUI.
A lot depends on what security settings you have on your network. The traditional methods of having X sessions displayed remotely (i.e DISPLAY=yourhostip:0.0" ) may not work unless you relax the security settings.
Here is a quick & easy ssh based experiment you can try.
On the local machine instead of logging into GDM locally, switch to a virtual terminal. Let's say vt/1.
Now fire up a bare bones X screen on vt/8.
xinit -- '1:0'
Now you will have a blank X screen with xshell running.
In the xshell run:
ssh -X yourusername@remotehost gnome-session &
This will fire up the gnome desktop on the remote machine but have it displayed locally.
The sshd server will handle xauth cookies for you over the ssh tunnel. Of course you can't close xshell or the tunnel will collapse unless you detach xshell or use screen.
----
If it is just a program that you want to run on the remote host but have it display locally, you could run ssh from the application launcher.
ssh -X user@host /opt/kde/bin/konqueror
will launch konqueror. You won't have a konsole that you need to close.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.