domingo, 10 de abril de 2016

Resolvendo problemas ao iniciar interface gráfica no Debian

Quando o Sistema Operacional não consegue iniciar a interface gráfica, alguma instabilidade está acontecendo nos arquivos de configuração gráfica, onde pode aparecer mensagens como essa abaixo quando não inicia e aplicamos o comando startx:

# startx
-----------------------------------------------------------------------------------------------------
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.11-2-amd64 x86_64 Debian
Current Operating System: Linux PC-Carlos 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86-64
Kernel command line: BOOT_IMAGE=/boot/vmlinux-3.2.9-4-amd64 root=UUID=45e50de3-c9e3-4a04-aa9d-033ea2f48c99 ro quiet
Build Date: 17 December 2013 07:37:58PM
xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.26.0
        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 implement, (??) unknow.
(==) Log file: "/var/log/Xorg.0.org" Time Wed Apr 16 13:21:45 2014
(==) Using system  config directory "/usr/share/X11.xorg.conf.d"

Fatal server error:

no screens found
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Server terminated with error (1). Closing log file.

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
-----------------------------------------------------------------------------------------------------

Você pode consultar o site http://wiki.x.org ou verificar arquivos como /var/log/Xorg.0.log, que muitas vezes pode até ajudar.

Mas algo que funcionou comigo foi remover a interface gráfica que no meu caso era mate-desktop e arquivos X e atualizar o kernel linux:
Remover a interface presnte, no meu caso mate-desktop:
# apt-get remove mate-desktop

Remover os arquivos X:

# apt-get remove xorg-server xorg-xinit xorg-utils xorg-server-utils
# apt-get purge xorg-server xorg-xinit xorg-utils xorg-server-utils

Ou simplesmente apt-get remove xorg* e depois:

Atualizar o kernel linux via repositórios backports:
### Backports Debian
deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
deb-src http://ftp.debian.org/debian wheezy-backports main contrib non-free

# apt-get update
# aptitude install -t wheezy-backports linux-image-amd64 linux-headers-amd64 firmware-linux
# reboot
# apt-get autoremove

Depois você instalar outra interface gráfica diferente, como por exemplo lxde, xfce4, ou outra, quando você instalar o lxde o sistema já vai puxar as dependências necessárias para que o sistema inicie essa interface.

Então com os arquivos xorg* e interface gráfica desinstalados, aplique o comando e aceite as dependências.

# apt-get install lxde

Depois disso, o meu Sistema Operacional voltou a fazer o arranque da interface gráfica normalmente. Então depois instalei minha interface gráfica preferida mate-desktop.



Fonte:
https://www.vivaolinux.com.br/topico/GNOME/Debian-nao-inicia-Interface-Grafica

Nenhum comentário:

Postar um comentário