You are not logged in.
When I'm at my machine I have an autostart and autologin, but when I ssh I don't want xinit to run since I'm only running from terminal.
/usr/lib/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console.
is what I get when I ssh into my machine, how do I stop this?
This is probably coming from something I previously did but ended up forgetting lol.
Last edited by Satorin (2022-05-08 05:37:00)
Offline
You apparently didn't follow the wiki to autostart X as it would work the way you want if you did. Where do you run xinit/startx? In your shell profile, shellrc, etc? Post whatever it is you are using.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
There is nothing in my home dir that is launching startx, but it seems to be coming from xserverrc which is
#!/bin/sh
exec /usr/bin/X -nolisten tcp "$@"Offline
No xserverrc is not running xinit/startx, it's the other way around. Something you configured is running xinit or startx. This is almost certainly something in your home directory, unless you put it in /etc/profile or /etc/profile.d.
What shell are you using? Post your shell profile and shellrc file.
Which tutorial did you follow when you installed / configured this system?
Last edited by Trilby (2022-05-07 23:10:48)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
#Misc alias
alias quit="exit"
alias cls="clear"
alias config="cd ~/.config;ls"
export EDITOR=nvim
alias v="nvim"
alias bashrc="v ~/.bashrc"
#pacman alias
alias paci="pacman -S"
alias pacr="pacman -Rs"
alias pacu="pacman -Syu"
alias sdn="shutdown now"
alias minecraft="minecraft-launcher"
if [ "$(tty)" = /dev/pts/0 ]; then
clear
echo " "
neofetch
fi
# BEGIN_KITTY_SHELL_INTEGRATION
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
# END_KITTY_SHELL_INTEGRATIONTrying to rack my brain here but I just can't remember what I used to get this up and running,
I have agetty which logs me in and my server starts with my .xinitrc configs
Offline
Which tutorial did you follow when you installed / configured this system?
Then check (aka post the output of) the following:
grep '\(xinit\|startx\)' ~/*
find ~/.config -type f -exec grep '\(xinit\|startx\)' '{}' \+
find /etc -type f -exec grep '\(xinit\|startx\)' '{}' \+ 2>/dev/nullLast edited by Trilby (2022-05-08 01:04:22)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
/home/satori/.config/~/.config/nvim/backup/%home%satori%.bashrc~: startx
/etc/profile:startx
/etc/xrdp/startwm.sh: if [ -r ~/.xinitrc ]; then
/etc/xrdp/startwm.sh: . ~/.xinitrc
/etc/xrdp/startwm.sh: if [ -r /etc/X11/xinit/xinitrc ]; then
/etc/xrdp/startwm.sh: . /etc/X11/xinit/xinitrc
/etc/xrdp/startwm.sh: # Don't use /etc/X11/xinit/Xsession - it doesn't work
/etc/xrdp/startwm.sh: if [ -f /etc/X11/xinit/xinitrc ]; then
/etc/xrdp/startwm.sh: /etc/X11/xinit/xinitrc
/etc/xrdp/startwm.sh: echo "** xinit package isn't installed" >&2
/etc/xrdp/startwm.sh: if [ -r /etc/X11/xinit/Xsession ]; then
/etc/xrdp/startwm.sh: . /etc/X11/xinit/Xsession
/etc/X11/xinit/xinitrc:sysresources=/etc/X11/xinit/.Xresources
/etc/X11/xinit/xinitrc:sysmodmap=/etc/X11/xinit/.Xmodmap
/etc/X11/xinit/xinitrc:if [ -d /etc/X11/xinit/xinitrc.d ] ; then
/etc/X11/xinit/xinitrc: for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
/etc/X11/tigervnc/Xsession:# Run all system xinitrc shell scripts
/etc/X11/tigervnc/Xsession:xinitdir="/etc/X11/xinit/xinitrc.d"
/etc/X11/tigervnc/Xsession:if [ -d "$xinitdir" ]; then
/etc/X11/tigervnc/Xsession: for script in $xinitdir/*; do
/etc/X11/tigervnc/Xsession: echo "Loading xinit script $script"yep just like you said etc/profile ahh.
# /etc/profile
# Set our umask
umask 022
# Append "$1" to $PATH when not already in.
# This function API is accessible to scripts in /etc/profile.d
append_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
# Append our default paths
append_path '/usr/local/sbin'
append_path '/usr/local/bin'
append_path '/usr/bin'
# Force PATH to be environment
export PATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Unload our profile API functions
unset -f append_path
# Source global bash config, when interactive but not posix or sh mode
if test "$BASH" &&\
test "$PS1" &&\
test -z "$POSIXLY_CORRECT" &&\
test "${0#-}" != sh &&\
test -r /etc/bash.bashrc
then
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
startxLast edited by Satorin (2022-05-08 02:50:24)
Offline