You are not logged in.

#1 2024-01-02 09:19:40

luich91
Member
Registered: 2021-10-12
Posts: 42

[SOLVED] startx and xfce4

startxfce4 command works correctly.
Why is startx not working?

This is the output of - sudo startx

X.Org X Server 1.21.1.10
X Protocol Version 11, Revision 0
Current Operating System: Linux dell 6.6.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 21 Dec 2023 19:01:01 +0000 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=2f399c59-bb99-440b-8c52-c51392788fe7 rw loglevel=3 quiet
 
Current version of pixman: 0.42.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Jan  2 10:16:55 2024
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
Failed to connect to bus: Nessun supporto trovato
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
/etc/X11/xinit/xinitrc: riga 51: twm: comando non trovato
/etc/X11/xinit/xinitrc: riga 52: xclock: comando non trovato
/etc/X11/xinit/xinitrc: riga 55: exec: xterm: non trovata
/etc/X11/xinit/xinitrc: riga 53: xterm: comando non trovato
/etc/X11/xinit/xinitrc: riga 54: xterm: comando non trovato
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

Last edited by luich91 (2024-01-02 16:25:16)

Offline

#2 2024-01-02 09:33:11

astralc
Member
Registered: 2022-09-17
Posts: 127

Re: [SOLVED] startx and xfce4

  1. Don't run startx with sudo.

  2. You don't have xterm and twm, which are the default commands in startx. You need to create ~/.xinitrc with your needed commands (copy the file from /etc/X11/xinit, and change) - check xinit in the wiki.

Last edited by astralc (2024-01-02 09:34:33)

Offline

#3 2024-01-02 10:00:21

luich91
Member
Registered: 2021-10-12
Posts: 42

Re: [SOLVED] startx and xfce4

Thanks
Now startx works, here is my .xinitrc file:

...
#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 startxfce4

Am I right?

Offline

#4 2024-01-02 10:21:20

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,554
Website

Re: [SOLVED] startx and xfce4

Depends what's above that ellipsis.

https://wiki.archlinux.org/title/Xinit#Configuration


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2024-01-02 11:39:07

luich91
Member
Registered: 2021-10-12
Posts: 42

Re: [SOLVED] startx and xfce4

WorMzy wrote:

Depends what's above that ellipsis.

https://wiki.archlinux.org/title/Xinit#Configuration

sorry, what do you mean?

Offline

#6 2024-01-02 11:45:20

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,554
Website

Re: [SOLVED] startx and xfce4

I'm assuming that your file doesn't start with an ellipsis ("..."). If it does then I'm amazed it works at all.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2024-01-02 11:56:01

luich91
Member
Registered: 2021-10-12
Posts: 42

Re: [SOLVED] startx and xfce4

So, this is the .xinitrc file complete:

#!/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 startxfce4

Offline

#8 2024-01-02 12:10:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,554
Website

Re: [SOLVED] startx and xfce4

Great, that looks fine.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB