Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-09-2002, 03:22 AM
|
#1
|
Member
Registered: May 2002
Location: Mexico
Distribution: Slackware
Posts: 118
Rep:
|
how to run multiple X windows?
i'll start by stating what i'm actually trying to do.
i'm trying to run a game server (HLDS) and KDE at the same time but not together. i tried to run HLDS in normal console but it says it cannot get the server's ip (i can't connect to the internet is what it's saying) so i did the xinit command and ran it there, works great! then i want to run KDE for general things of quick web browsing quick and easy installation of stuff and most importantly, allowing my dad to play XFreeCell by just clicking on the gear shaped thing on the desktop instead of typing a bunch of commands he doesn't want to learn. when i try to load KDE in a second login i guess i could call it, by that i mean when you push Ctrl+Alt+F2, it says X server is already running and it can't connect.
how can i run 2 logins (as same user) and both run X at the same time?
|
|
|
06-09-2002, 09:50 AM
|
#2
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
OK, there's a number of different ways to run multiple X sessions on one machine. By far the easiest one that I've found is this:
Boot the machine and run your 1st program in that X session.
Press <CTRL>+<ALT>+<F2> (or any other F key for that matter), log in as root and rub gdm (or kdm). This should give you an error about an X session already being run on tty7, so attempting another one. You should then be given a GUI login (the gnome one). Log in, run your 2nd program and away you go. Make sure that you go back to F2 and log out from root. You should then be able to switch back and forth between the two X sessions with <CTRL>+<ALT>+<F7>/<F8>.
Hope this helps.
|
|
|
06-09-2002, 03:41 PM
|
#3
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
I tried the gdm trick but it didnt work, it doesn't start another session. Anyways i saw and tried and it worked another method posted by one of the Linux gurus, but i forgot the exact syntax. Anyways you need to specify to start X on terminal 8 using the same monitor as seven.
Startx [options here}
but i forgot the options. Either go dig through man startx or wait till one of the Linux gods comes and gives you the command again.
WARNING: Running two KDE sessions is a bad idea. It will slow your computer to a crawl and eat up your memory. Running two lihter window managers, or KDE and a lighter window manager should be fine tho...
I know i didnt help much... but i at least i hope i put you on the right track
-NSKL
|
|
|
06-09-2002, 05:52 PM
|
#4
|
Member
Registered: Sep 2001
Distribution: Gentoo
Posts: 760
Rep:
|
I run Debian Sid and have it set to a graphical log in (on F7/:0), while logged in to a consol (F1) I just type the following to start another X on F8/:1
Naturally this would use .xinitrc if I had such a file, so I can have .xsession for my normal login and .xinitrc for the second GUI. I believe there is a way to specify a different startup script on the command line as well.
|
|
|
06-10-2002, 01:05 AM
|
#5
|
Member
Registered: May 2002
Location: Mexico
Distribution: Slackware
Posts: 118
Original Poster
Rep:
|
Quote:
Originally posted by dorward
|
YOU DID IT!!!
good job buddy  , thanks 
|
|
|
06-10-2002, 02:52 AM
|
#6
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
I only mention the gdm trick because I had no end of problems using 'startx -- :1'...it would close down the X session running on tty7, so I could not switch between them. This was, however, under Mandy 7.2, so things may have improved.
|
|
|
06-11-2002, 04:32 AM
|
#7
|
Member
Registered: Apr 2002
Posts: 270
Rep:
|
startx -- :1 it works fine. but some problems
one user cannot have more than one X-sessions and sound will be available to only one X-session
|
|
|
06-11-2002, 05:16 AM
|
#8
|
Member
Registered: Sep 2001
Distribution: Gentoo
Posts: 760
Rep:
|
Quote:
Originally posted by sakeeb
startx -- :1 it works fine. but some problems
one user cannot have more than one X-sessions and sound will be available to only one X-session
|
I just did a test and got three X sessions running without a problem. This may be an issue with your config, or it might be that you are trying to run a session on display :1 when one if already there. Change the number each time.
X doesn't touch the sound card, if only one session can access it you are probably running something to lock it. Most likely KDE (specifically the arts demon)
|
|
|
06-11-2002, 05:23 AM
|
#9
|
Member
Registered: Apr 2002
Posts: 270
Rep:
|
yes you are right. i didn't run kde but kwin. i changed the numbers to 2 ,3,4 etc ( i did it earlier itself) but could not start mutlitiple X-session for same user.but different users can have thir own xsessions
|
|
|
All times are GMT -5. The time now is 10:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|