LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2014, 05:24 PM   #1
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Rep: Reputation: Disabled
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
 
Old 07-26-2014, 05:29 PM   #2
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
I had the same question a month or 2 ago...

Short answer: X11 fowarding only forwards applications, but not the whole desktop.
 
Old 07-27-2014, 12:24 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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
 
Old 07-27-2014, 05:01 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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.
 
Old 07-27-2014, 08:00 PM   #5
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks all of you !
 
  


Reply



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
X11 forwarding BigNate Linux - Software 16 06-21-2011 01:39 AM
Fedora 9 gnome xrandr causes X11 restart, works fine in KDE thorsten becker Fedora 0 07-01-2008 01:53 AM
ssh X11 Forwarding works, but I cannot view webcam through it. - testing with spcagui Anithen Linux - Software 4 06-13-2008 03:47 AM
Changing the way x11 works Davebomb Linux - Software 12 12-30-2004 03:48 PM
Need Help with X11 forwarding phatboyz Linux - General 3 04-16-2004 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

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