You are not logged in.

#1 2025-03-23 14:25:31

jocheem67
Member
Registered: 2009-11-09
Posts: 248

[SOLVED]xauth: (stdin):2: unknown command "****NUMBER"

Hi all,

Using startx to launch XFCE4. With the command  I get to see:

 xauth: (stdin):2:  unknown command "lots of numbers" 

Multiple lines...

No problem to get into my X11session. But it's a bit weird.
A gentoo forum post recommends to delete my .Xauthority file, but I'm a bit reluctant to do that.

xauth list command:

$ xauth list
view-localhost:0  MIT-MAGIC-COOKIE-1  e83a89dedc4c2543c4ad1d0700c614a3
inspiron/unix:0  MIT-MAGIC-COOKIE-1  e77b9d3b6f33ed3c65671517243b1a47
inspiron:0  MIT-MAGIC-COOKIE-1  e77b9d3b6f33ed3c65671517243b1a47
inspiron:0  MIT-MAGIC-COOKIE-1  e77b9d3b6f33ed3c65671517243b1a47
inspiron:0  MIT-MAGIC-COOKIE-1  e77b9d3b6f33ed3c65671517243b1a47
inspiron:0  MIT-MAGIC-COOKIE-1  e77b9d3b6f33ed3c65671517243b1a47

Any recommendations?

Last edited by jocheem67 (2025-03-24 04:19:51)

Offline

#2 2025-03-23 15:00:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,205

Re: [SOLVED]xauth: (stdin):2: unknown command "****NUMBER"

What does your .xinitrc look like?

Offline

#3 2025-03-23 16:22:51

seth
Member
Registered: 2012-09-03
Posts: 62,236

Re: [SOLVED]xauth: (stdin):2: unknown command "****NUMBER"

view-localhost:0  MIT-MAGIC-COOKIE-1  e83a89dedc4c2543c4ad1d0700c614a3

Also the "hostnamectl" output.

Offline

#4 2025-03-23 18:20:25

jocheem67
Member
Registered: 2009-11-09
Posts: 248

Re: [SOLVED]xauth: (stdin):2: unknown command "****NUMBER"

.xinitrc

#!/bin/sh

xrdb=xrdb
xinitdir=/etc/X11/xinit
xclock=xclock
xterm=xterm
twm=twm
xmodmap=xmodmap

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=$xinitdir/.Xresources
sysmodmap=$xinitdir/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    if [ -x /usr/bin/cpp ] ; then
        $xrdb -merge $sysresources
    else
        $xrdb -nocpp -merge $sysresources
    fi
fi

if [ -f $sysmodmap ]; then
    $xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    if [ -x /usr/bin/cpp ] ; then
        $xrdb -merge "$userresources"
    else
        $xrdb -nocpp -merge "$userresources"
    fi
fi

if [ -f "$usermodmap" ]; then
    $xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d $xinitdir/xinitrc.d ] ; then
 for f in "$xinitdir/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

# Start XFCE4
startxfce4

hostnamectl

 Static hostname: inspiron
       Icon name: computer-laptop
         Chassis: laptop ?
      Machine ID: 1628ad65df87411f9221037456bd8cb3
         Boot ID: 82499fbe0f5f4ef2b9e066d726a2c729
    Product UUID: 4c4c4544-0051-3510-8043-b3c04f443734
Operating System: Arch Linux                          
          Kernel: Linux 6.12.19-1-lts
    Architecture: x86-64
 Hardware Vendor: Dell Inc.
  Hardware Model: Inspiron 16 Plus 7640
 Hardware Serial: 3Q5CD74
Firmware Version: 1.11.0
   Firmware Date: Tue 2024-09-24
    Firmware Age: 5month 4w

Offline

#5 2025-03-23 20:45:59

seth
Member
Registered: 2012-09-03
Posts: 62,236

Re: [SOLVED]xauth: (stdin):2: unknown command "****NUMBER"

Nothing problematic there.
"view-localhost:0" made me thing [Edit, wtf? - "think"] you maybe don't have a static hostname and it gets swapped while the server starts, but nope.

Is the number in the subject correct or just some placeholder?
You could try "xauth remove view-localhost:0", but it's generally fine to remove the .Xauthority and have it recreated.
If you're super-concerned, you could also just move it aside (append .bak or so)

Last edited by seth (2025-03-24 07:39:56)

Offline

#6 2025-03-24 04:16:12

jocheem67
Member
Registered: 2009-11-09
Posts: 248

Re: [SOLVED]xauth: (stdin):2: unknown command "****NUMBER"

Ok, thanks! mark as solved.

Last edited by jocheem67 (2025-03-24 04:17:46)

Offline

Board footer

Powered by FluxBB