You are not logged in.
G'day everybody,
my time has finally come to register and ask a question instead of just lurking around. Thanks to everybody in advance, your help is appreciated!
Summary:
After installing Arch (LVM on LUKS) i dedcided to install i3 as tiling manager. I already did this on other machines and never had any issues. However, today I had one.
Issue:
After installing xorg, xorg-apps, xorg-xinit, xorg-server, xterm ,i3 (I tried both with and without i3-gapps) and adding exec i3 to my /etc/X11/xinit/xinitrc I copied it to ~/.xinitrc.
Afterwards I executed 'startx' but only X Windows was starting.
Troubleshooting I've done:
1. started the i3-config-wizard from X window.
2. executed startx as root
3. added a new user with the following command 'useradd -m -g users -G wheel,storage,power -s /bin/bash username'
4. read through quite a few posts about similar issues, but most of these guys just forgot to install xorg-xinit
5. reinstalled xorg-xinit
SOLUTION provided by slithery:
xinitrc does ignore all exec commands after the first one. I needed to delete all exec commands but the exec i3 part.
Cheers,
CenTrrikK
Last edited by CenTrrikK (2018-01-06 11:58:43)
Offline
Welcome to the forums CenTrrikK ![]()
Please post your ~/.xinitrc
Last edited by Slithery (2018-01-06 11:33:19)
Offline
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
exec i3Offline
Nothing else is executed after the first exec command, which in this case is stating xterm. You need to remove the following lines....
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginOffline
Wow, I can't believe how easy you fixed an issue, that I just couldn't solve. I literally changed nothing on this file execpt for the exec i3 line.
Thank you very much for moving my brokeness one step to the right. I hope you had and keep on having a great start into this day.
I'll mark the thread as closed.
Cheers,
Giuliano
Last edited by CenTrrikK (2018-01-06 11:57:00)
Offline
Glad I could help.
For future reference this is covered in the wiki...
https://wiki.archlinux.org/index.php/Xinit#xinitrc
Offline
...
2. executed startx as root...
Don't do that.
Now that you have marked this as solved, I hope upon hope you are running startx as your regular user.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline