LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   change Xorg display from :0 to :1 (https://www.linuxquestions.org/questions/linux-software-2/change-xorg-display-from-0-to-1-a-4175437917/)

cssidhu 11-20-2012 02:59 AM

change Xorg display from :0 to :1
 
this is my system information, currently installed Centos 6.3 :

uname -a

Linux mylocalhost 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

----------------------------------------------------------------------------------------------------------------------------------------

Issue:

Now on my present centos 6.3 install my /usr/bin/Xorg:0 is process is running on display :0 on tty1 as seen below :

ps -ef | grep Xorg

root 2174 1 0 11:54 tty7 00:00:01 Xorg vt7 -query remotehostname :1.0
root 2220 2218 0 11:54 tty1 00:00:11 /usr/bin/Xorg :0 -nr -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-WnUXzz/database vt1
root 3321 2810 0 13:48 pts/0 00:00:00 grep Xorg

Before I migrated from Centos 6.2 to Centos 6.3, /usr/bin/Xorg:1 was running on display :1 on tty7 as seen below :

root 2219 2217 0 11:05 tty7 00:00:07 /usr/bin/Xorg :1 -br -verbose -auth /var/run/gdm/auth-for-gdm-iaSbcA/database -nolisten tcp

-----------------------------------------------------------------------------------------------------------------------------------------

Question

Now is there a way I can have the process "root 2220 2218 0 11:54 tty1 00:00:11 /usr/bin/Xorg :0 -nr -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-WnUXzz/database vt1" changed to "root 2219 2217 0 11:05 tty7 00:00:07 /usr/bin/Xorg :1 -br -verbose -auth /var/run/gdm/auth-for-gdm-iaSbcA/database -nolisten tcp".

I am unable to find the file where i can make this specific change to fix this issue and I've been trying to work gdm custom.conf in centos 6.3 but it doesn't have any impact.

If their is anyone who can put me in the right direction i'll be very grateful, i hope i've made my question clear.

steelneck 11-21-2012 12:58 PM

I might have misunderstood your question, so take this with a grain of salt.

I think you should take a look in /etc/initab, that is the usual place that defines on what tty you end up in.

cssidhu 11-22-2012 03:01 AM

Mate tty is all good I can change it without any problems.

My main issue is how to change default Xorg :0 display to Xorg :1 .

The reason behind all this is that I am trying to run an Xsession independently which executes A okay on display ":1" but there are certain applications which won't run on display ":1" and will only run on display ":0".

So I am hoping if there is anyway to change default display of Xorg :0 to Xorg:1

I hope this make sense and I'd really appreciate some help cause i haven't had any success with the amount of googling I've done for past 3 days.


All times are GMT -5. The time now is 06:42 PM.