Re: [arch-general] X fails to start after editing ~/.xinitrc
Hello there. Would your system still fail with empty .xinitrc? (mv ~/.xinitrc ~/dangerous_xinitrc && touch ~/.xinitrc) You don't need ampersand for fonts rehashing. Is that line is only one you have in your .xinitrc? Do you have system xinitrc? (/etc/X11/xinit/xinitrc) Is it empty? Igor Mosyagin cellular: +79265279171 jabber: cramur@talk.mipt.ru skype: cr4mur
Date: Wed, 7 Sep 2011 03:54:37 +0000 (UTC) From: "Juan R. de Silva" <juan.r.d.silva@gmail.com> To: arch-general@archlinux.org Subject: Re: [arch-general] X fails to start after editing ~/.xinitrc Message-ID: <j46ptt$jt0$1@dough.gmane.org> Content-Type: text/plain; charset=UTF-8
On Wed, 07 Sep 2011 04:45:49 +0200, Karol Blazewicz wrote:
On Wed, Sep 7, 2011 at 4:16 AM, Juan R. de Silva <juan.r.d.silva@gmail.com> wrote:
3. In case net-tools package from core does not provide hostname any more as well, what would be a solution then for one that would like to use "terminus" fonts which by default installed into /usr/share/fonts/local?
I've never had any problems with Terminus being added to fontpath in .xinitrc but you can use xorg.conf for that too.
To use xorg.conf I would need first to create one, since my system works without it so far. Unless I really must to create it I would prefer to leave things as their are for now.
If you have net-tools installed, you shouldn't be getting errors about hostname being missing.
Yes, net-tools is installed. However the error is as I said.
hostname will be provided by inetutils, as was explained in the mailing list message I linked to. I'm currently running testing and I have no problems with X, hostname does its job (whatever that might be ;P), I'm using Terminus and have 'xset +fp /usr/share/fonts/local &; in my .xinirtc - all seems to work.
You typed above: 'xset +fp /usr/share/fonts/local &;
Is it a typo or you meant to say your .xinitrc has line like this?
'xset +fp /usr/share/fonts/local &' - with ampersand at the end
If the last is true then it differs from my entry, which is
'xset +fp /usr/share/fonts/local' - without ampersand.
Does it make sense to add it?..
When I downgrade to [core] (i.e. I'm not using [testing] anymore), things still work, so the current net-tools should be all you need.
Here a snippet I found in 'man xset':
[ fp rehash:
The rehash argument resets the font path to its current value, causing the server to reread the font databases in the current font path. This is generally only used when adding new fonts to a font directory (after running mkfontdir to recreate the font database). ]
I actually never run 'mkfontdir' after Terminus fonts were installed since the Fonts Installation wiki page I referred to mentions that executing 'mkfontscale' and then 'mkfontdir' is needed only for "older applications that do not support fontconfig".
Do you think this might be a problem?
On Wed, 07 Sep 2011 14:29:29 +0400, Igor Mosyagin wrote:
Hello there.
Would your system still fail with empty .xinitrc? (mv ~/.xinitrc ~/dangerous_xinitrc && touch ~/.xinitrc)
Yes, the system fails with empty ~/.xinitrc. Actually it supposed to fail according with this snippet from "Testing X" chapter of Beginner's Guide: "... there will be an empty .xinitrc file in your $HOME that you need to either delete or edit in order to start a graphical environment. Simply deleting it will cause X to run with the default environment (twm, xclock, xterm)." In my case X starts only if ~/.xinitrc file does not exist at all.
Is that line is only one you have in your .xinitrc?
Yes, I have only 2 lines I mentioned in my original post.
Do you have system xinitrc? (/etc/X11/xinit/xinitrc)
Yes, I do.
Is it empty?
No, it is not. It's rather full and contains all default entries, since I've never touched it. Another thing to mention. As I've found that the error I reported originally: "/usr/bin/startx: Line 127: hostname: command not found", apparently has nothing to do with the problem. It is displayed each time I successfully start X and then kill it. The error then reported upon X exit. It looks to me now that Karol's suggestion of hostname being deprecated is correct and is the reason of the error being thrown up. So, the only thing remained for now :-) is to find why X fails start with ~/.xinitrc present and being edited as suggested by guide.
In my case X starts only if ~/.xinitrc file does not exist at all.
Is that line is only one you have in your .xinitrc?
Yes, I have only 2 lines I mentioned in my original post.
Do you have system xinitrc? (/etc/X11/xinit/xinitrc)
Yes, I do.
Is it empty?
No, it is not. It's rather full and contains all default entries, since I've never touched it.
Another thing to mention. As I've found that the error I reported originally:
"/usr/bin/startx: Line 127: hostname: command not found",
apparently has nothing to do with the problem.
It is displayed each time I successfully start X and then kill it. The error then reported upon X exit. It looks to me now that Karol's suggestion of hostname being deprecated is correct and is the reason of the error being thrown up.
So, the only thing remained for now :-) is to find why X fails start with ~/.xinitrc present and being edited as suggested by guide.
Perhaps you should have it actually start a window manager, eg "exec openbox-session" or whatever your preferred wm is.
On Wed, 07 Sep 2011 17:16:37 -0400, Shacristo wrote:
Perhaps you should have it actually start a window manager, eg "exec openbox-session" or whatever your preferred wm is.
Well, I've purposely not installed any DE or WM yet. My goal at this point is to configure default X environment with its basic window manager and to make them using Terminus fonts. And then, if in my case X fails to start with the bare .xinitrc file how it would make things any better adding to the file additional commands/ instructions.
Is it actually failing to start or is it executing .xinitrc and exiting? .xinitrc needs to hand off control to a wm. You can still use twm from .xinitrc.
On Wed, 07 Sep 2011 17:46:30 -0400, Shacristo wrote:
Is it actually failing to start or is it executing .xinitrc and exiting? .xinitrc needs to hand off control to a wm. You can still use twm from .xinitrc.
Yes, this was the problem - .xinitrc was executing and exiting. And this is what, pardon my ignorance, I interpreted as X failing to start. I've resolved it by 'cp /etc/X11/xinit/xinitrc ~/.xinitrc' and then adding my 2 lines before 'twm &' command. Thank you, and everyone replied.
On Wed, Sep 7, 2011 at 11:40 PM, Juan R. de Silva <juan.r.d.silva@gmail.com> wrote:
On Wed, 07 Sep 2011 17:16:37 -0400, Shacristo wrote:
Perhaps you should have it actually start a window manager, eg "exec openbox-session" or whatever your preferred wm is.
Well, I've purposely not installed any DE or WM yet. My goal at this point is to configure default X environment with its basic window manager and to make them using Terminus fonts.
And then, if in my case X fails to start with the bare .xinitrc file how it would make things any better adding to the file additional commands/ instructions.
I'm not a .xinitrc guru, but sometimes things didn't want to work properly until I added a wm e.g. playing games or videos in a separate X server.
participants (4)
-
Igor Mosyagin
-
Juan R. de Silva
-
Karol Blazewicz
-
Shacristo