You are not logged in.
Every time i run terminal after startx command with non-roor user i get this message:
/usr/lib/xorg-server/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
Creating /etc/X11/Xwrapper.config file with
allowed_users = anybody and needs_root_rights = no or needs_root_rights = yes
does not solve the problem, instead causes complete xorg service shutdown.
Last edited by Yeallow (2016-07-20 18:12:20)
Offline
So, you run startx and then once you're in the X session you run startx again from a terminal? That's what it sounds like you're doing. It would certainly produce an error.
What exactly are you trying to accomplish?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
@loafer No. I run startx once. Then i get this message every time i open a terminal in i3.
Offline
What is in your shell initialisation files?
Offline
/etc/profile:
umask 022
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && ."$profile"
done
unset profile
fi
if test "$PS1" && test "BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
. /etc/bash.bashrc
fi
unset TERMCAP
unset MANPATH
in /.bash.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
in /etc/bash.bashrc
[[ $- != *i* ]] return
PS1='[\u@\h \W] \$ '
PS2='>'
PS3='>'
PS4='+'
case $ {term} in
xterm*|rxvt*|Eterm|aterm|kterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND;} printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}" '
;;
screen)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND;} printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}" '
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
in ~/.bashrc
[[ $- != *i* ]] && return
alias ls= 'ls --color=auto'
PS1='[\u@\h \W]\$ '
startx
Offline
in ~/.bashrc
[[ $- != *i* ]] && return alias ls= 'ls --color=auto' PS1='[\u@\h \W]\$ ' startx
There you go... I don't know where you got that idea, but starting X every time you open a shell is not a good idea.
Offline
Stupid me. Solved. Thank you for your help!
Last edited by Yeallow (2016-07-19 23:29:24)
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline