notebook:~# kedit
kedit: cannot connect to X server
notebook:~# glxinfo
Error: unable to open display
notebook:~# conky
Conky: can't open display:
notebook:~# glxgears
Error: couldn't open display (null)
Debian ma domyślnie zamkniętą możliwość uruchomienia programów Xowych z konsoli. Powinieneś mieć możliwość uruchomienia ich cały czas, ale jako root lub przez sudo.
Można to oczywiście udostępnić, w tym celu patrz np. tu:
W Debianie przy domyślnym ustawieniu nie odpalisz programów z konsoli jako root, programów używających x'y. Musisz posłużyć się sudo z poziomu zwykłego użytkownika.
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
damyan ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
i teraz wszystko działa jak należy, czyli przez sudo, ale nie wiem czy danie "damyan'owi" uprawnień "ALL" to nie za duże uprawnienia jak na user'a?