Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #12229 > unrolled thread

Can different-users have different-X?

Started bynot.socialnetwork@gmail.com
First post2014-10-08 12:08 +0000
Last post2014-10-08 22:19 +0530
Articles 5 — 5 participants

Back to article view | Back to comp.os.linux.misc


Contents

  Can different-users have different-X? not.socialnetwork@gmail.com - 2014-10-08 12:08 +0000
    Re: Can different-users have different-X? Øyvind Røtvold <orotvold@gmail.com> - 2014-10-08 14:34 +0200
      Re: Can different-users have different-X? Unknown <dog@gmail.com> - 2014-12-28 06:04 +0000
    Re: Can different-users have different-X? Robert Heller <heller@deepsoft.com> - 2014-10-08 08:12 -0500
    Re: Can different-users have different-X? Balwinder S Dheeman <bdheeman.SANSPAM@outlook.com> - 2014-10-08 22:19 +0530

#12229 — Can different-users have different-X?

Fromnot.socialnetwork@gmail.com
Date2014-10-08 12:08 +0000
SubjectCan different-users have different-X?
Message-ID<m139f3$nlu$1@dont-email.me>
For the PC that never goes-online, I login as root.   *sorry*!!
Now I've got a subtle/complex problem that seems to be related to
the font-server.

I read that only root can change the font-server.
I don't want to reboot, and lose all my work, but wanted to see/if
what a non-root user sees in X.

Because I didn't cultivate the habit of pretending I'm various different
non-root userS, I just *assumed* that this multi-user OS could log
different users into different X configurations.
I favour blacbox, but Mary may prefer twm.

The error is <server already active on display 0>

What am I doing wrong?
Can I change the font-server settings, and still recover my work?
Is it possible that after the system boots, it's OK; but exercising 
various programs, changes some font-setting, which then makes
xpdf ...etc. fuzzy?

== TIA.

[toc] | [next] | [standalone]


#12230

FromØyvind Røtvold <orotvold@gmail.com>
Date2014-10-08 14:34 +0200
Message-ID<v6od2a2loyz.fsf@jjj.jjj>
In reply to#12229
not.socialnetwork@gmail.com writes:

[ snip ]
>
> The error is <server already active on display 0>
>
> What am I doing wrong?

You're trying to start a server at display 0, the default, and there's
already one running there.

This should work:

xinit -- :1 &
DISPLAY=:1 xterm

> Can I change the font-server settings, and still recover my work?
> Is it possible that after the system boots, it's OK; but exercising 
> various programs, changes some font-setting, which then makes
> xpdf ...etc. fuzzy?

You can do a 'xrdb -query' after startup, save the result and try to
reset to that result later with eg. 'xrdb -remove', 'xrdb -merge'.


-- 
.. Øyvind - soon to appear in a kill file near you.
.. Ignorance can be cured; stupidity is forever.

[toc] | [prev] | [next] | [standalone]


#13116

FromUnknown <dog@gmail.com>
Date2014-12-28 06:04 +0000
Message-ID<pan.2014.12.28.06.11.15@gmail.com>
In reply to#12230
On Wed, 08 Oct 2014 14:34:28 +0200, Øyvind Røtvold wrote:

> not.socialnetwork@gmail.com writes:
> 
> [ snip ]
>>
>> The error is <server already active on display 0>
>>
>> What am I doing wrong?
> 
> You're trying to start a server at display 0, the default, and there's
> already one running there.
> 
> This should work:
> 
> xinit -- :1 &
> DISPLAY=:1 xterm

My log syntax: -> what I input; == the resulting output; => observation
=> This log now in VT3

=> in VT4
-> xinit -- :1 & ==
drip under pressure.

~:xinit -- :1 &
[1] 5802
~:
entering d=X
 ? why did blok of: `cat << <EOX: saved as ??>` cause HANGING ?
ready to continue after intro-trace of d [now copied to X] ? =
/usr/local/sbin/X: line 5: read: read error: 0: Input/output error
numbered lines of Partns:-

waiting for X server to begin accepting connections .
..
..
.. ..... Needs Ctrl/D to: ..logout

=> in VT5
-> 1 xterm ==
Warning: This program is an suid-root program or is being run by the root 
user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s

-> pstree | grep x ==
     |-bash---startx---xinit-+-X
     |                       `-blackbox-+-bbkeys
....
=> So the original X  seems to have survived. Yes, I'm now in X.
-------------------------------------------------
> 
>> Can I change the font-server settings, and still recover my work? Is it
>> possible that after the system boots, it's OK; but exercising various
>> programs, changes some font-setting, which then makes xpdf ...etc.
>> fuzzy?
> 
> You can do a 'xrdb -query' after startup, save the result and try to
> reset to that result later with eg. 'xrdb -remove', 'xrdb -merge'.

==> Save result NOW [in bad state]
-> xrdb -query ==xrdb: Can't open display <- OK ? try in X
=> Now in X
-> xrdb -query == no output
-> xrdb -h == <menu>
-> xrdb -query == no output
-> xrdb -screens == no *RETURN*
=> 10 minutes later need ^C to <exit/return xterm>
------------------- end of log of failed-tests -----------
Thanks.

PS. An excelent article by David Davidovic @ http://tutplus.com
points to <gamma correction> problems. But how it could start OK,
and later change to BAD is a mystery for me.

BTW there's 2 problems here:
1. xpdf ..etc BECOMES badly displayed after OK when initially run-X.
2. It would be interesting to keep the initial X, and experiment with
  others, at the same time.

[toc] | [prev] | [next] | [standalone]


#12231

FromRobert Heller <heller@deepsoft.com>
Date2014-10-08 08:12 -0500
Message-ID<5PCdnQ6MlfTSpajJnZ2dnUU7-IOdnZ2d@giganews.com>
In reply to#12229
At Wed, 8 Oct 2014 12:08:03 +0000 (UTC) not.socialnetwork@gmail.com wrote:

> 
> For the PC that never goes-online, I login as root.   *sorry*!!
> Now I've got a subtle/complex problem that seems to be related to
> the font-server.
> 
> I read that only root can change the font-server.
> I don't want to reboot, and lose all my work, but wanted to see/if
> what a non-root user sees in X.
> 
> Because I didn't cultivate the habit of pretending I'm various different
> non-root userS, I just *assumed* that this multi-user OS could log
> different users into different X configurations.
> I favour blacbox, but Mary may prefer twm.
> 
> The error is <server already active on display 0>
> 
> What am I doing wrong?
> Can I change the font-server settings, and still recover my work?
> Is it possible that after the system boots, it's OK; but exercising 
> various programs, changes some font-setting, which then makes
> xpdf ...etc. fuzzy?

Generally speaking, you can only have one X session on a given 'head' (read as 
single PC with a single video card) at a time.  (It is possible to more than 
one, but that is probably an advanced topic.)

Each user can have different X settings, but generally all share a single 
/etc/X11/xorg.conf file, which most defines system level things (like the type 
of video card, monitor, keyboard, and pointer and drivers to use for these 
*hardware* devices).  Each user can have a different font-path (possibly 
by-passing the font-server).  See 'man xset' for details.

> 
> == TIA.
> 
>                                          

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services
                                                                            

[toc] | [prev] | [next] | [standalone]


#12236

FromBalwinder S Dheeman <bdheeman.SANSPAM@outlook.com>
Date2014-10-08 22:19 +0530
Message-ID<m13pvs$p28$1@speranza.aioe.org>
In reply to#12229
On 10/08/2014 05:38 PM, not.socialnetwork@gmail.com wrote:
> For the PC that never goes-online, I login as root.   *sorry*!!
> Now I've got a subtle/complex problem that seems to be related to
> the font-server.
> 
> I read that only root can change the font-server.
> I don't want to reboot, and lose all my work, but wanted to see/if
> what a non-root user sees in X.
> 
> Because I didn't cultivate the habit of pretending I'm various different
> non-root userS, I just *assumed* that this multi-user OS could log
> different users into different X configurations.
> I favour blacbox, but Mary may prefer twm.
> 
> The error is <server already active on display 0>
> 
> What am I doing wrong?
> Can I change the font-server settings, and still recover my work?
> Is it possible that after the system boots, it's OK; but exercising 
> various programs, changes some font-setting, which then makes
> xpdf ...etc. fuzzy?

Ask the users to login from a virtual/text terminal and then use
'startx' command to start X server. The users can customize their setup
by creating and, or editing $HOME/.xinitrc and $HOME/.xserverrc files,
see manpage for startx(1) for further details.

-- 
Balwinder S "bdheeman" Dheeman (http://bdheeman.BlogSpot.in/)
"Working together, works! The proof is GNU/Linux and F/LOSS Projects;
Do you too voluntarily work on or contribute to making any difference?"

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web