You are not logged in.
I have a new Arch install and am trying to use i3. When I run startx as root, I am brought to the i3 desktop no problem. When I run startx as a user, however, the X server immediately shuts down with no error.
I am able to start xterm and openbox no problem as user. i3 is the only one I am having issues with.
I noticed a .i3 directory in my root home that doesn't exist in my user's home. Could that be part of my problem?
Last edited by zookeeprr (2014-12-29 23:18:12)
Offline
What's in your user's .xinitrc?
Offline
The user's .xinitrc is copied from /etc/skel/.xinitrc with i3 added. It is located in the user's home directory.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec i3
Offline
...and the permissions on it?
Offline
I'm not sure to be honest. ls -l .xinitrc returns:
-rw-r--r-- 1 $USER $USER 327 $DATETIME .xinitrc
with $USER being the user and $DATETIME being the date and time.
Offline
That looks fine. How are you attempting to start X as your user?
Have you read this? https://www.archlinux.org/news/xorg-ser … available/
Offline
I am starting X by executing startx. It acts like it's going to start and then closes the X session. If I type sudo startx, I can enter the i3 environment without problem.
I think the issue is more with i3 than xorg, as I can start openbox if I alter my .xinitrc and type startx. It's only i3 giving me problems.
Offline
Check the permissions on your i3 files: if you copied them to your $HOME as root, they won't be accessible...
Offline
That may be the issue. Where would I look for the i3 files? I know I have some i3 files in /usr/bin. Are those the ones in question? I also see an .i3 directory under root's home.
Offline
I noticed a .i3 directory in my root home that doesn't exist in my user's home. Could that be part of my problem?
I think so -- the .i3 folder contains the config file for i3.
The wiki page refers to ~/.config/i3/config -- I do not have this file.
Try this command:
i3-config-wizard
This should generate a basic config file.
Offline
All right, that must be it. I don't have a ~/.config/i3/config file either. How do I change permissions on the .i3 directory? Seems like I would need to have it in my user's home, no?
i3-config-wizard fails when run as non-root.
Offline
i3-config-wizard fails when run as non-root.
It works just fine for me -- there is something else going on here.
EDIT: What is the exact error message when you try to run the config wizard?
EDIT AGAIN: Silly question (maybe), but how did you install i3?
Last edited by Head_on_a_Stick (2014-12-30 00:16:54)
Offline
Could it be a problem with my i3 install?
Offline
When running i3-config-wizard, It fails with the message "Cannot open display"
Offline
When running i3-config-wizard, It fails with the message "Cannot open display"
Yeah sorry, it does that when you run it from the console (TTY).
Try copying the .i3 folder over from root & run this:
# chown -R <user name>:<user name> .i3
Offline
No silly questions! I installed i3 by running sudo pacman -S i3 and choosing "all" at the prompt.
Offline
I installed i3 by running sudo pacman -S i3
That's probably fine, but you should really update your system every time you install new packages (check the news page first!):
# pacman -Syu i3
Offline
Good to know about installing new packages! I just ran an upgrade and it listed nothing to do, so we're good there.
I ran chown -R $USER:$USER .i3
It completed with no errors, but startx still fails to load.
Offline
Start an openbox session & run the `i3-config-wizard` command from there.
I'm rapidly running out of ideas here...
Offline
Can we get your xorg log? It should be in ~/.local/share/xorg/
Offline
Well, hmmm. The plot thickens.
Running i3-config-wizard in an openbox session won't work without root permission. When prefacing with sudo, it says the root/.i3/config already exists.
~/.local/share/xorg does not exist.
Offline
Offline
~/.local/share/xorg does not exist.
Well that can't be good. What are the permissions on ~/.local and ~./local/share?
Offline
I believe I used
# useradd -m -G $GROUP -s /bin/bash $USER
Offline
Stop using variable expressions -- what exactly did you type in?
Offline