3503 Views 10 Replies Latest reply: Mar 22, 2006 9:18 AM by tong
Thank you for your suggestion. Could you help me more about the .xinitrc file?
I don't have a .xinitrc in my home directory. So I created one but not very sure what to write inside it. I first tried
xterm -sl 1000 &
X11 failed to start after that, so i changed the line to just
And again X11 crashes at start.
May be there is the root one in /etc directory that I can copy to home. But somehow I think this may not be the way to go. So could you give me some more advises?
I'm sorry that I didn't reply right away because I was at work. It's probably a good thing though because I like Daniel's idea better. Of course you'll have to create that file as well.
Actually you shouldn't create the ~/.xinitrc; you should copy the template with the command:
cp /etc/X11/xinit/xinitrc ~/.xinitrc
Then you can edit it as you like. When you don't have such a file, X11 uses the template but after you execute the above command it will use the new one. There is no template for the ~/.Xresources file so if you don't already have one, you can do what Daniel suggests with the command:
echo 'XTerm*saveLines: 1000' >> ~/.Xresources
Organic chemistry is the chemistry of carbon compounds.
Biochemistry is the study of carbon compounds that crawl.
-- Mike Adams
Thank you for you all for giving me so much help!
I tried both methods. The method using .xinitrc worked!
However, for some strange reason, X11 seemed not to respond to ~/.Xresources. (Of course, once again, I just put in one line in this file). The buffer size is still 64. But I can see why changing the buffer size using .Xresources is a better method. Anyway, I think I have got access to the .Xresources file in my departmental server, I will have a look at that and see what may have been the cause of the problem.
Thank you very much!
I actually deleted the .xinitrc when I tried the .Xresources method. And I have just read the default xinitrc file, and it does contain commands to load the .Xresources.
However, this is what I have also discovered, in the defaut XTerm file, which has path:
(that X11 dir is the only one I can find in /etc )
in XTerm, there is no line containing
is this relevant?
I have solved the problem!
The problem is exactly the strange directory name for my X11 in /etc. All links in the /usr/local/X11R6/ are pointed to /etc/X11, but in fact no such directory exsist on my machine, and hence not even the default xinitrc read.
So, my temporary fix is to copy the .xinitrc template to ~/, and it worked.
I am thinking may be I can put a symbolic link
ln -s X11 X11.AppleBackup
in /etc ?
Any suggestions for a better method? Of course I can also change the dir name, just afraid some programs may depend on that name.