LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-16-2017, 03:45 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,178

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
OT: How to start Xnest (or Xephyr) as another user


I want to configure FVWM in a clean environment and thought the simplest way would be to start it as another user in Xnest. Is this possible? I tried logging in with su - user1 in xterm (KDE4) and running Xnest :1 -ac & but I get the following error:

user1@slackware:~$ No protocol specified
(EE)
Fatal server error:
(EE) Unable to open display ":0".
(EE)
 
Old 05-16-2017, 04:07 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
While I'm not familiar with Xnest, you may just need to force the DISPLAY variable so it isn't looking for :0. So, after logging in, try running DISPLAY=:1 Xnest :1 -ac &
 
1 members found this post helpful.
Old 05-16-2017, 04:34 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,178

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by bassmadrigal View Post
While I'm not familiar with Xnest, you may just need to force the DISPLAY variable so it isn't looking for :0. So, after logging in, try running DISPLAY=:1 Xnest :1 -ac &
No such luck. It doesn't seem to like me doing this as another user. Same with Xephyr. I'll probably set up XDMCP and login that way.
 
Old 05-16-2017, 05:40 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,178

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
I found the solution here:

Briefly:

Code:
Xephyr -ac -screen 1600x900 -br -reset -terminate 2> /dev/null :1 &

DISPLAY=:1

su - user1 -c 'fvwm'
 
Old 05-17-2017, 05:38 AM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,178

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Gerard Lally View Post
I found the solution here:

Briefly:

Code:
Xephyr -ac -screen 1600x900 -br -reset -terminate 2> /dev/null :1 &

DISPLAY=:1

su - user1 -c 'fvwm'
fvwm accepts the display argument:

Code:
Xephyr -ac -screen 1600x900 -br -reset -terminate 2> /dev/null :1 &

su - user1 -c 'fvwm -display :1'
 
1 members found this post helpful.
  


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
[SOLVED] where to get xorg-server xephyr,xnest, xvfb tarballs? matters Slackware 7 03-16-2010 12:11 PM
Xnest (Xephyr) problem landgraf4ik Linux - Software 0 12-11-2009 03:36 AM
Suggestions on using Xnest and Xephyr? Need help linus72 Linux - Software 0 08-16-2009 06:43 PM
Xephyr/Xnest - all I can get is a weave pattern instead of remote desktop gctaylor1 Linux - Desktop 1 01-05-2007 10:59 PM
create Xnest Laucher for user that won't kill X intersidereal Linux - General 1 11-10-2003 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:15 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