Hey all,
I was reading this
http://www.tuxradar.com/content/how-linux-works-ultimate-guideRecently and I was trying to get this to work.
Step by step: Tunnel X through SSH
Change the config
Change the config: Make sure you have AllowX11Forwarding and ForwardX11 enabled in both computers' /etc/ssh/ssh_config files.
Make the connection
Make the connection: Type ssh -X username@ipaddress to connect to the remote machine. Ideally, this machine shouldn't have an X session running.
Pull windows
Pull windows: Type startx -- :1 to launch a graphical session that will be pulled through the SSH session, or try xclock & if there's one already running.
I can get the ssh login part done, but when I try
$ startx -- :1
xauth: creating new authority file /home/jaycoke/.serverauth.27949
Authentication failed - cannot start X server.
Perhaps you do not have console ownership?giving up.
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): Server error.I have tried to add my user to 'root' group, (on both machines) but still desn't work as user. However running startx -- :1 as root gets me this...
# startx -- :1
xauth: creating new authority file /root/.serverauth.28472
X.Org X Server 1.6.5
Release Date: 2009-10-11
X Protocol Version 11, Revision 0
Build Operating System: Linux_2.6.32.4-pclos2 PCLinuxOS
Current Operating System: Linux localhost.localdomain 2.6.32.11-pclos2.bfs #1 SMP PREEMPT Wed Apr 7 13:33:19 CDT 2010 i686
Build Date: 22 January 2010 05:01:40AM
Before reporting problems, check http://pclinuxos.com
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Jun 6 21:31:07 2010
(==) Using config file: "/etc/X11/xorg.conf"But when I try to go to display 1 ("Ctrl+Alt+F8") All I see is a blank TTY
i have done some searching both on our forums and Google with no clear answers.
This is a good discussion, but no mention of running startx through ssh.
http://www.pclinuxos.com/forum/index.php/topic,59617.msg479946.html#msg479946BTW If I run startx -- :1 locally (not through ssh) it works fine, and the display starts up as expected.