LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   X11 Forwarding-X11 Applications Works but startx Not Works (https://www.linuxquestions.org/questions/linux-newbie-8/x11-forwarding-x11-applications-works-but-startx-not-works-4175512374/)

gonny95 07-26-2014 06:24 PM

X11 Forwarding-X11 Applications Works but startx Not Works
 
HI

I have one laptop and one desktop which are both Ubuntu 14.04 LTS

I have installed openssh-server on my desktop

and I'm able to launch X11 via ssh from my laptop
XServer of the laptop displays applications of my desktop with no problem
But When I try to execute startx X window starts not at laptop but at desktop
Of course I connected ssh with -XYv options

I also tried set $DISPLAY variable like:
Code:

DISPLAY="192.168.0.3:0"
export DISPLAY

and when I typed startx there is no error message
Code:

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-37-generic i686 Ubuntu
Current Operating System: Linux HomeDesktop 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic root=UUID=4357d2bd-e319-4b24-99e3-aaf4f9558d90 ro quiet splash vt.handoff=7
Build Date: 16 April 2014  01:40:08PM
xorg-server 2:1.15.1-0ubuntu2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
        Before reporting problems, check http://wiki.x.org
        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.0.log", Time: Sun Jul 27 07:22:08 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
resize called 1024 768

I guess It seems to be connected to laptop's Xserver because of the last line "resize called 1024 768" maybe
Although It seems so,that's not working

maples 07-26-2014 06:29 PM

I had the same question a month or 2 ago...

Short answer: X11 fowarding only forwards applications, but not the whole desktop.

jpollard 07-27-2014 01:24 AM

As stated, X forwarding is for applications. You are already running an X server, so there is no inherent need to run another.

You CAN run an X server as an application (look for the Xnest server - it uses the X protocol to simulate a display (and that can be forwarded), then any applications started will display within the window the Xnest X server uses for display. The last time I did this, cut and paste between applications running on the native X server cannot be pasted into windows displayed in the Xnest window. It has been a while, so that may have been added, but I doubt it:

http://fixunix.com/xwindows/91014-selection-xnest.html

pan64 07-27-2014 06:01 AM

I think you mixed two different things: open an app on an X windows display and start a new X windows environment. ssh will allow to open a remote app on your local display, but not able to start new X desktop (yes, it was stated already). startx will run a new local X server for you. If you want to have a remote X session you need to look for xdmcp.

gonny95 07-27-2014 09:00 PM

Thanks all of you !


All times are GMT -5. The time now is 10:06 PM.