[SOLVED] multiple virtual desktops open on one monitor
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
Just found out about Xephyr, also installed by default in Slackware, which supports resizing using xrandr and advanced functions like compositing and Xinerama.
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.
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.
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).
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:
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).
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.