[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.
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.
I did the same experiment. I don't know if I had the same or different failure as the OP. Removing the exec did not provide any error messages I found helpful.
I had installed wmaker an Xephyr and used that command to start them. Then I managed to start a terminal window inside wmaker. Then, if I tried using the mouse (the way I'm used to in kde or gnome, etc.) to move or resize that terminal window, the whole Xephyr plus wmaker plus terminal went away.
I later found you can use mainly the keyboard for moving windows etc. in that environment. I didn't figure out how to resize a window and I didn't get the basic concept of any of the controls and I kept having mouse accidents that crashed the whole thing (almost any mouse drag action crashed it all).
Someone should tell the OP how to enable xdmcp in his environment (it is too different from enabling xdmcp in mine). I get the fact that the experts here think he shouldn't need to login each desktop. But the alternatives posted don't seem to be getting the job done.
I am wondering whether this is due to my setup, where I regularly use WindowMaker, and so have an existing ~/.xinitrc file set up for WindowMaker.
From 'man xinit'
Quote:
SYNOPSIS
xinit [ [ client ] options ... ] [ -- [ server ] [ display ] options ... ]
...
If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to start up client programs.
I have no problems when I do:
Code:
xinit -- /usr/bin/Xephyr :1 -screen 600x960
where the ~/.xinitrc file is used.
The content of my .xinitrc file is:
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# If the user lacks $HOME/GNUstep, install it:
if [ ! -f $HOME/GNUstep/Defaults/WindowMaker ]; then
wmaker.inst
fi
# Test for cpp, which wmaker uses to process config files:
if [ ! -x /usr/bin/cpp ]; then
NOCPP="--no-cpp"
fi
# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch --exit-with-session /usr/bin/wmaker $NOCPP
else
exec dbus-launch --exit-with-session /usr/bin/wmaker $NOCPP
fi
Perhaps the use of dbus-launch is the reason that I do not have any problem with the mouse.
I am not quite sure what happened, but now I have four new desktops. These are not like xnet they are like linuxmint desktops that come by default and behave the same way. I cannot get back to my original desktops unless I go through Dolphin and click on desktop. I tried to restore everything to default through system settings, but that didn't help. By not being sure what I did I mean I was on the net and watching a movie so both monitors were in use then when I closed both windows I noticed my desktop had changed. All my folders and widgets were gone. Am I now running two sessions at once?
Jonnynitro138
Never mind I fixed my error. I managed it through the login, I changed my session to Xclient script somehow so I just changed it back to plasma.
Last edited by jonnynitro138; 01-02-2014 at 05:44 PM.
One of the problems with the desktops as they are currently designed is that any configuration change done on an alternate login (which is either xnest/zephyr or just another login) is that they share configurations --- So much so that they could EASILY get confused (I'm familiar with this happening to Gnome as it uses a memory resident configuration service, so changes get propagated willy nilly (via dbus) to whatever shares the access keys, as all such duplication would).
I would suggest using a lightweight window manager such as twm instead. It doesn't do crap like that.
I get it now znest, zephyrn, twm, and plasma are window managers. While in the twm desktop; would I get better results for allends? Because at the moment these are my results:
jonnynitro138:~ > SYNOPSIS
SYNOPSIS: command not found
[127]jonnynitro138:~ > xinit [ [ client ] options ... ] [ -- [ server ] [ display ] options ... ]
X: user not authorized to run the X server, aborting.
xinit: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
connection to X server lost
after 7 requests (7 known processed) with 0 events remaining.
jonnynitro138:~ >
I get it now znest, zephyrn, twm, and plasma are window managers.
No. Xnest and Xephyr are X-servers, Twm is a window manager, Plasma is part of the KDE desktop environment.
Quote:
jonnynitro138:~ > SYNOPSIS
SYNOPSIS: command not found
[127]jonnynitro138:~ > xinit [ [ client ] options ... ] [ -- [ server ] [ display ] options ... ]
X: user not authorized to run the X server, aborting.
xinit: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
connection to X server lost
after 7 requests (7 known processed) with 0 events remaining.
jonnynitro138:~ >
What you see on the man pages are not actual commands, but a description of the syntax of the commands, you can't directly use them. Have a look here to learn how to read man pages: http://www.linuxcommand.org/reading_man_pages.php
Sweet I thank you. http://www.kernel.org/doc/man-pages/ was the final destination. I wish I knew about this a few years ago, I would probably be a little better by now.
It used to be easier to recognize. If the name ended in "dm" then it was a display manager. If the name ended in "wm" it was a window manager. Now you have to read the man pages on everything to find out what it does... If there are any.
Okay I'm pretty sure this is what I am looking for. It will just take some practice manipulating the proper resolution of the made desktop from quarter size to full size. Does twm accept hot keys so that I can open an close files quicker than going through the slow qui?
Thank you
Jonnynitro138
I finally solved this post. Bodhi is the answer that I was looking for. With Bodhi I don't have to try to use a black screen, and the gui is simple to use. Thank you all though for the great help and suggestions.
Jonnynitro138
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.