LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 02-21-2003, 04:25 AM   #1
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Is it possible to have two X servers running?


Well, you know how X runs on tty7, is it possible to get another one to also run at the same time on tty8?
 
Old 02-21-2003, 04:42 AM   #2
Mik
Guru
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Gentoo + LFS
Posts: 1,316

Rep: Reputation: 46
The first will usually run on display 0 so for the second type:
startx -- :1
and the third
startx -- :2
etc.....
 
Old 02-21-2003, 09:42 AM   #3
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
Wow I never knew you could do that, you learn something new everyday.
 
Old 02-21-2003, 01:25 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Might not be relevant now, but you could also nest them ( Xserver as a windowed app within an Xserver ) using Xnest . ( man 1 Xnest )
 
Old 02-21-2003, 02:47 PM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611

Rep: Reputation: 61
Just out of pure curiosity:
What would happen (or rather, how would you choose) if you opened enough X's that you ran out of Fkeys. So, after CTRL ALT F12, where would you go?

Cool
 
Old 02-21-2003, 02:55 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by MasterC
Just out of pure curiosity:
What would happen (or rather, how would you choose) if you opened enough X's that you ran out of Fkeys. So, after CTRL ALT F12, where would you go?

Cool
Funny, I tried it the day I learned about the possiblities that multiple displays offered. My conclusion was that you can open as many as you want, but cant get to the seventh and successive once you switch consoles.
 
Old 02-21-2003, 02:59 PM   #7
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611

Rep: Reputation: 61
Thanks... another "just out of curiosity" question to add:
If I startx on those different tty's, can I send them out to different displays (I'm assuming so, this would be a good reason to have that option)? If so, how? This assumes multiple displays, even if they are over a network.

Thanks for the info so far!

Cool
 
Old 02-21-2003, 03:15 PM   #8
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
Dear its linux
 
Old 02-21-2003, 03:55 PM   #9
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
This is nice.. And not only you could use many X but if you have any of them online, they are all online.. THis is great, now i could use one with KDE menu and the other one with GNOME..
 
Old 02-21-2003, 04:03 PM   #10
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by MasterC
Thanks... another "just out of curiosity" question to add:
If I startx on those different tty's, can I send them out to different displays (I'm assuming so, this would be a good reason to have that option)? If so, how? This assumes multiple displays, even if they are over a network.

Thanks for the info so far!

Cool
sure, why not. You can export the DISPLAY variable on the shell from which you launch the x app ( client); lets say xeyes. You want the xeyes to be served by the x server running at a different box running at vt 8 ( Ctrl + Shift + F8 ) and having display number 2.

export DISPLAY=<xserverip>:2
xeyes

or for a one time thing..
xeyes -display <serverip>:2

ohh. this assumes you have started x without --no-listen tcp and you have proper authentication in terms of xhost or MIT-MAGIC-COOKIEs. Otherwise the server will refuse the connection.
 
Old 02-21-2003, 04:12 PM   #11
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by boreo
This is nice.. And not only you could use many X but if you have any of them online, they are all online.. THis is great, now i could use one with KDE menu and the other one with GNOME..
yup, kde and gnome are just a bunch of X client apps including a window manager for each. You can run as many different window managers as you want as you have X servers.
 
Old 02-21-2003, 05:04 PM   #12
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
omg, this kicks arse!! w00t, now i can run Games on one X session, while surf on the other, and 'alt tab' so to speak between the two quite easily

/me bows down to startx -- :2
 
Old 02-21-2003, 06:08 PM   #13
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by Grim Reaper
omg, this kicks arse!! w00t, now i can run Games on one X session, while surf on the other, and 'alt tab' so to speak between the two quite easily

/me bows down to startx -- :2
Sure does. I dont play too many games so there must be some reason I can't see now that make me want to ask if you _really_ need multiple X servers for what gaming/surfing. Cant one use multiple workspaces?
 
Old 02-21-2003, 07:49 PM   #14
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
I was thinking something, does running too many X servers take RAM space in some way? Or the RAM focus on the one you are using at the time and the other just are taken care by the virtual memory/swap partition, I don't know if I make any sence.. But any ideas?
 
Old 02-22-2003, 04:30 AM   #15
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
Of course loading an extra X server is going to take up RAM and CPU cycles, shouldn't be two much tho is there isn't a heavily active process running on the other server. Use 'top' to find out what exactly is happening.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem running servers RohanShrivastav Fedora 2 07-29-2005 12:29 AM
Running servers in consols... Synesthesia Linux - General 7 06-23-2005 03:54 AM
Running 2 Desktop Environments on 2 Different X-Servers Audax321 Linux - General 2 02-20-2005 10:13 PM
Running Web Servers Behind Routers jmsuthar General 6 06-29-2004 12:22 PM
running servers with DHCP??? wiredX Linux - Security 4 07-14-2003 04:01 AM


All times are GMT -5. The time now is 11:35 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration