You are not logged in.

#1 2021-06-30 21:32:15

Qwart
Member
Registered: 2021-03-23
Posts: 32

[Solved] Xinit not working

When I start startx I get a weird session with three terminals and a clock instead of LeftWM (I also can't start it without root).

I only added this line to .xinitrc (from leftwm github page): "exec dbus-launch leftwm"

Edit: Fixed the boot into tdm session. Still can't use startx without sudo, and when used gives errors related to xkbcomp like:

Could not resolve keysym XF86KdbLcdMenu5Errors from xkbcomp are not fatal

Edit2: Fixed the errors related to xkbcomp by deleting all autogenerated key symbols in /usr/share/X11/xkb/symbols/inet. I still haven't figured out how to run startx without room (LightWM won't work as root), and all topics on that doesn't point at any solution

Edit3: Finally found a topic and turned out that I need to downgrade kernel

Last edited by Qwart (2021-07-01 00:06:50)

Offline

#2 2021-06-30 21:56:37

teckk
Member
Registered: 2013-02-21
Posts: 589

Re: [Solved] Xinit not working

You are using

cat /etc/X11/xinit/xinitrc

Post your /home/<username>/.xinitrc

Or configure it correctly.
https://wiki.archlinux.org/title/Xinit

Offline

#3 2021-06-30 22:26:02

Qwart
Member
Registered: 2021-03-23
Posts: 32

Re: [Solved] Xinit not working

teckk wrote:

You are using

cat /etc/X11/xinit/xinitrc

Post your /home/<username>/.xinitrc

Or configure it correctly.
https://wiki.archlinux.org/title/Xinit

I followed everything there and I already have ~/.xinitrc

#!/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 dbus-launch leftwm

Last edited by Qwart (2021-06-30 22:28:17)

Offline

#4 2021-06-30 22:30:17

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] Xinit not working

Qwart wrote:

I followed everything there

You missed part. Read the "xinitrc" section again, starting with this:

This default xinitrc will start a basic environment with Twm, xorg-xclock and Xterm (assuming that the necessary packages are installed).

Offline

#5 2021-06-30 22:38:12

Qwart
Member
Registered: 2021-03-23
Posts: 32

Re: [Solved] Xinit not working

2ManyDogs wrote:
Qwart wrote:

I followed everything there

You missed part. Read the "xinitrc" section again, starting with this:

This default xinitrc will start a basic environment with Twm, xorg-xclock and Xterm (assuming that the necessary packages are installed).

Didn't fixed the problem. DE won't launch and I get the same errors anbout keys

Last edited by Qwart (2021-06-30 22:40:13)

Offline

#6 2021-06-30 22:38:15

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: [Solved] Xinit not working

Xinit#Override_xinitrc implies

startx /usr/bin/leftwm

would not use xinitrc as a client command is specified.

Last edited by loqs (2021-06-30 22:38:58)

Offline

#7 2021-07-01 11:08:37

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,332

Re: [Solved] Xinit not working

exec xterm -geometry 80x66+0+0 -name login &
exec dbus-launch leftwm

the problem is in those 2 lines, lookup what exec does.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2021-07-01 11:15:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,441

Offline

Board footer

Powered by FluxBB