Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Really simple on, X11

Really simple on, X11
Thread Tools
Dedicated MacNNer
Join Date: Jul 2002
Location: Norway
Status: Offline
Reply With Quote
Jul 7, 2003, 01:29 PM
 
Anybody know how to not make 'X11' show the terminal at start up ?? No problem for me, but the users at my school might wonder what it is when I've installed Open Office with Coool to them.
Mac Pro 2 x 2.8 GHz Quad-Core, Nvidia GeForce 8800GT
     
Mac Enthusiast
Join Date: Sep 2000
Location: France
Status: Offline
Reply With Quote
Jul 7, 2003, 01:44 PM
 
in the .xinitrc file in your home directory, delete the line containing xterm.
You can add other commands at the end of this file, and they will be launched every time you fire up X11.
     
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status: Offline
Reply With Quote
Jul 7, 2003, 04:41 PM
 
Originally posted by Axel:
in the .xinitrc file in your home directory, delete the line containing xterm.
You can add other commands at the end of this file, and they will be launched every time you fire up X11.
Well that file isn't located in my home dir. But I used the "locate" command to search for it and I found it in /private/etc/X11/xinit/

EDIT: you need to sudo to edit this.
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Jul 7, 2003, 05:32 PM
 
The unix way to handle this is to copy /private/etc/xinit/xinitrc to your home directory as .xinitrc. The dot makes it invisible to the finder as well as load when X11 is started. That leaves the original file untouched and you can edit the ~/.xinitrc as a user rather than as root. The command is

cp /private/etc/xinit/xinitrc ~/.xinitrc

That new file has your privileges so sudo is not needed to edit. X11 will look for startup files in your home directory before looking in /private/etc. If they are found, the search is stopped. The same applies to login/.login and logout/.logout

Craig
     
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status: Offline
Reply With Quote
Jul 8, 2003, 05:07 AM
 
Originally posted by suthercd:
The unix way to handle this is to copy /private/etc/xinit/xinitrc to your home directory as .xinitrc. The dot makes it invisible to the finder as well as load when X11 is started. That leaves the original file untouched and you can edit the ~/.xinitrc as a user rather than as root. The command is

cp /private/etc/xinit/xinitrc ~/.xinitrc

That new file has your privileges so sudo is not needed to edit. X11 will look for startup files in your home directory before looking in /private/etc. If they are found, the search is stopped. The same applies to login/.login and logout/.logout

Craig
Ok, cool. I restored the original file and made a copy in my home dir.
     
Dedicated MacNNer
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 8, 2003, 09:50 PM
 
You can add an .xinitrc in your home
directory but if you wan't to set it globaly then you would have to modify the
one in /private/etc/xinit/
     
Dedicated MacNNer
Join Date: Jul 2002
Location: Norway
Status: Offline
Reply With Quote
Jul 9, 2003, 01:30 AM
 
Just wanted to say thx. Nothing more. Works great !!
Mac Pro 2 x 2.8 GHz Quad-Core, Nvidia GeForce 8800GT
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:01 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2