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 12-30-2013, 07:23 PM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886

Quote:
Originally Posted by jpollard View Post
You should even be able to attch window managers to the display the same way.
Tried that following the tutorial, Fluxbox, Blackbox and Windowmaker crashed Xnest, Twm, FVWM2 worked, I could even start xfwm4 and Kwin.
You possibly want to set the resolution for Xnest manually using the -geometry option to be able to use the full screen space (or your desired size, of course), it will not resize automatically if the window is resized.
 
Old 12-30-2013, 07:30 PM   #17
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Something I should have known and just now figured out, helped by the link TobiSGD posted (maybe it will help the OP):

If xdmcp is enabled on your system (it wasn't on mine) you can use the command
Code:
Xnest :1 -query localhost
to get a login prompt in a window, which becomes a desktop in a window once you login. The 1 is the display number created, so vary that when creating others.

To enable xdmcp see if you can find distribution and version specific help. What worked on my Centos 6.5 was editing /etc/gdm/custom.conf and finding the line
Code:
[xdmcp]
and inserting the following line below it:
Code:
Enable=true

Last edited by johnsfine; 12-31-2013 at 12:10 PM.
 
Old 12-30-2013, 07:39 PM   #18
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just found out about Xephyr, also installed by default in Slackware, which supports resizing using xrandr and advanced functions like compositing and Xinerama.
 
Old 12-31-2013, 12:00 PM   #19
jonnynitro138
Member
 
Registered: Jul 2011
Location: tallahasee
Posts: 253

Original Poster
Rep: Reputation: Disabled
what is x session

I am lost a bit here in the begining of using xnest. I installed it, but I have no idea what or how to enter an x-session. I think I can follow the rest of the directions on the link. I am pretty excited to get this up and running I think this may be what I am looking for.
One more; I installed ratpoison but I cannot locate it, how do I use it?
Thank you,
Jonnynitro138
At the moment I am using linuxmint 16 kde.

Last edited by jonnynitro138; 12-31-2013 at 12:06 PM.
 
Old 12-31-2013, 12:15 PM   #20
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
What happens if you open a terminal and give the command
Code:
Xnest :1 -query localhost
If you get a blank window, that probably means xdmcp is disabled. If you get error messages back in the terminal window used to launch Xnest, those may be informative (if the problem is something other than xdmcp disabled).

I tried Xephyr based on the advice in other posts. So far it seems to be like Xnest but resizable, which is a useful difference.
 
Old 12-31-2013, 12:37 PM   #21
jonnynitro138
Member
 
Registered: Jul 2011
Location: tallahasee
Posts: 253

Original Poster
Rep: Reputation: Disabled
reply to johnsfine

I do get a blank screen that has Xnet on the top of it.
How do I enable xdmcp?

Last edited by jonnynitro138; 12-31-2013 at 03:22 PM.
 
Old 12-31-2013, 07:54 PM   #22
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
You don't need to start an XDMCP session - that would require you to login on each xnest.

Just direct it to start the window manager - I would suggest a lightweight one like twm, or maybe e16 due to the possible software rendering done.
 
Old 12-31-2013, 07:59 PM   #23
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
You don't need to start xdmcp, just start a lightweight window manager on it.
 
Old 01-01-2014, 12:55 AM   #24
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
It has been a while since I played with Xephyr, but this may help. http://www.linuxquestions.org/questi...ml#post4008434
It shows how you can have a window manager (I used WindowMaker) running in a Xephyr server in a desktop environment (KDE).
 
Old 01-01-2014, 04:55 AM   #25
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Having piqued my interest, I have played some more.
In the attached screenshot you can see WindowMaker running on a 1280x1024 display. Within are two Xephyr sessions running WindowMaker. These were started from separate shells using:
Code:
exec xinit /usr/bin/wmaker -- /usr/bin/Xephyr :1 -screen 600x960
in the first shell, and
Code:
exec xinit /usr/bin/wmaker -- /usr/bin/Xephyr :2 -screen 600x960
in the second shell.
Note: By using exec, the starting shell is automatically closed when the Xephyr session is closed.

I had to manually move the windows into position. I have not found a method to specify the position on start up.

These Xephyr sessions can be made full screen using:
Code:
xrandr -s 1280x1024
and returned to original size using:
Code:
xrandr -s 600x960
If you wanted to do this a lot, it would be easy to add these commands into the right click menu.

The only problem that I have found to date in my limited testing is that you cannot copy and paste between sessions.
Attached Thumbnails
Click image for larger version

Name:	snapshot.png
Views:	57
Size:	247.8 KB
ID:	14379  
 
Old 01-01-2014, 06:26 AM   #26
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Thanks. That is the kind of "cookbook" instructions I was asking for.

If I understand correctly wmaker is filling the role of gdm on my system and probably kdm on the OP's system (or is it at the gnome or kde level)? So the OP might need less install and learning if he uses kdm instead of wmaker.

Ignoring learning and install overhead, using a different desktop inside Xephyr than outside might avoid problems will colliding config files.

Similarly Xephyr should be largely interchangeable with Xnest except that Xnest won't resize its contents.

Given the basic command that works, I or the OP could generalize to other features by looking at the man page for wmaker (or kdm) and the man page for Xephyr (or Xnest).

Last edited by johnsfine; 01-01-2014 at 06:34 AM.
 
Old 01-01-2014, 07:24 AM   #27
jonnynitro138
Member
 
Registered: Jul 2011
Location: tallahasee
Posts: 253

Original Poster
Rep: Reputation: Disabled
happy new year

Thank you all for the great support. I will get to this more intently after family leaves, they have been here for almost a week.
Happy New Year!!!!
Jonnynitro138
 
Old 01-01-2014, 07:53 AM   #28
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
Quote:
Originally Posted by johnsfine View Post
Thanks. That is the kind of "cookbook" instructions I was asking for.

If I understand correctly wmaker is filling the role of gdm on my system and probably kdm on the OP's system (or is it at the gnome or kde level)? So the OP might need less install and learning if he uses kdm instead of wmaker.
wmaker is a window manager. It does not do what gdm does - which is only to setup for and start a login. In the case of wmaker the user is already logged in (running xnext), thus no need to login.
Quote:
Ignoring learning and install overhead, using a different desktop inside Xephyr than outside might avoid problems will colliding config files.
Depends on the config files. Some applications work for multiple desktops, and those would still have common configuration files. If you are referring to the desktop itself, yes they would tend to have separate configuration files.
Quote:
Similarly Xephyr should be largely interchangeable with Xnest except that Xnest won't resize its contents.
There is also the difference that Xephyr does support hardware acceleration if the underlying X server has acceleration.
Quote:

Given the basic command that works, I or the OP could generalize to other features by looking at the man page for wmaker (or kdm) and the man page for Xephyr (or Xnest).
Note that kdm is a login manager where wmaker is a window manager. Now that really only has security implications when the user logged in using kdm (under Xnest or Xephyr) is subject to monitoring by the user logged in that is hosting the Xephyr/Xnest display.
 
Old 01-02-2014, 12:01 AM   #29
jonnynitro138
Member
 
Registered: Jul 2011
Location: tallahasee
Posts: 253

Original Poster
Rep: Reputation: Disabled
I think I broke something

I experimented with what has been so far. This is what I got. johnsfine produced a black screen, which had my mouse turn into an x when it passed over it. allend produced a screen that disapeared quickly and with it the konsole, this was using 'exec xinit /usr/bin/wmaker -- /usr/bin/Xephyr :1 -screen 600x960'. Then when I used 'xrandr -s 1280x1024' I lost one monitor and 1280x1024 became my resolution on the other monitor. I did reset these changes and have both monitors back and at the proper resolutions. I think that I am missing something or I made an error along the way. I am going to review everything and try again. This is fun, thank you. I am gaining a new understanding of window managment.
Jonnynitro138

I did get two xnet screens to come up, (good start). I even got one to give me a menue when I right ckick on the screen. I cannot use any of the menu selections though. But yes johnsfine is spot on for what I am looking for.

Last edited by jonnynitro138; 01-02-2014 at 12:33 AM.
 
Old 01-02-2014, 01:18 AM   #30
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
allend produced a screen that disapeared quickly and with it the konsole, this was using 'exec xinit /usr/bin/wmaker -- /usr/bin/Xephyr :1 -screen 600x960'
Try without the 'exec' part of the command so that the konsole is preserved. You may see an error message that will give you a clue as why it is failing.
 
  


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
window over multiple virtual desktops in KDE adrianab Linux - Desktop 5 10-09-2009 04:57 AM
Starting gdm on multiple virtual desktops daihard Linux - Software 3 05-12-2007 05:49 PM
Running multiple virtual desktops? watha Linux - Software 2 07-24-2006 11:48 PM
KDE 'virtual desktop' not 'multiple desktops' pxlpluker Linux - Software 17 08-06-2003 05:29 PM
Virtual (not multiple) desktops in KDE or Enlightenment Proud Linux - Software 7 04-02-2003 04:18 PM

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

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

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