LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Impossible recovery ???? (https://www.linuxquestions.org/questions/linux-software-2/impossible-recovery-461968/)

gabsik 07-07-2006 10:59 PM

Impossible recovery ????
 
Directory /etc/X11 got lost due to a rm -rf ... i have removed and apt-get install back x-window-system xserver-xfree86 and got back /etc/X11 directory with this content
Quote:

gabrix@www:~$ ls -la /etc/X11/
total 32
drwxr-xr-x 5 root root 4096 Jul 8 05:20 .
drwxr-xr-x 117 root root 8192 Jul 8 05:33 ..
lrwxrwxrwx 1 root root 20 Jul 8 04:54 X -> /usr/bin/X11/XFree86
-rw-r--r-- 1 root root 3079 Jul 8 05:19 XF86Config-4
-rw-r--r-- 1 root root 2948 Jul 8 05:19 XF86Config-4-20060708-0519
drwxr-xr-x 2 root root 4096 Jul 8 05:20 blackbox
drwxr-xr-x 2 root root 4096 Jul 8 05:20 twm
drwxr-xr-x 2 root root 4096 Jul 8 05:20 xfce4
I have installed first xfce4 and tryied also with blacbox but startx gives me a grey background and a white backgroung shell.
I'm sure important files are still missing in /etc/X11 .
I don't want format, how can i save my desktop ?
Thanks!

HappyTux 07-08-2006 03:59 PM

That is what plain X looks like when running without a Display Manager. You want to look into installing xdm (X Display Manager) so you will get a graphical login screen or creating a .xinitrc in your home directory with a command in it to start your preferred desktop environment like in this thread so it starts xfce4, blackbox ...

gabsik 07-09-2006 05:11 AM

XDM is installed:
Quote:

root@www:~# apt-get install xdm
Reading package lists... Done
Building dependency tree... Done
xdm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

HappyTux 07-09-2006 11:04 AM

Quote:

Originally Posted by gabsik
XDM is installed:

Ok then I would try apt-get install --reinstall xdm to see if will recreate the proper links for it to start or if starting from command line use /etc/init.d/xdm start.

gabsik 07-12-2006 05:08 AM

That's when xdm starts:
Quote:

root@www:~# /etc/init.d/xdm start
Starting X display manager: xdmWed Jul 12 12:05:55 2006 xdm info (pid 918): starting
.
root@www:~# Wed Jul 12 12:05:55 2006 xdm info (pid 918): starting X server on :0
X: unable to open wrapper config file /etc/X11/Xwrapper.config
XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-14sarge1 20050901212727 fjp@localhost.localdomain)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.8-16.0508-2 i686 [ELF]
Build Date: 02 September 2005

This version of XFree86 has been extensively modified by the Debian
Project, and is not supported by the XFree86 Project, Inc., in any
way. Bugs should be reported to the Debian Bug Tracking System; see
<URL: http://www.debian.org/Bugs/Reporting >.

We strongly encourage the use of the "reportbug" package and command
to ensure that bug reports contain as much useful information as
possible.

Before filing a bug report, you may want to consult the Debian X FAQ:
XHTML version: file:///usr/share/doc/xfree86-common/FAQ.xhtml
plain text version: file:///usr/share/doc/xfree86-common/FAQ.gz

Module Loader present
OS Kernel: Linux version 2.6.8-2-386 (horms@tabatha.lab.ultramonkey.org) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #1 Tue Aug 16 12:46:35 UTC 2005
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Jul 12 12:05:55 2006
(==) Using config file: "/etc/X11/XF86Config-4"
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_clip.o": No symbols found
Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_norm.o": No symbols found
Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_xform.o": No symbols found
Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_vertex.o": No symbols found
Skipping "/usr/X11R6/lib/modules/fonts/libspeedo.a:spencode.o": No symbols found
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Couldn't load XKB keymap, falling back to pre-XKB keymap
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0
Could not init font path element unix/:7100, removing from list!
and this after a restart:
Quote:

root@www:~# /etc/init.d/xdm restart
Stopping X display manager: xdm not running (/var/run/xdm.pid not found)
.
Starting X display manager: xdmWed Jul 12 12:07:55 2006 xdm info (pid 962): starting
.
root@www:~# Wed Jul 12 12:07:55 2006 xdm error (pid 962): error binding socket address 177: Address already in use
Wed Jul 12 12:07:55 2006 xdm info (pid 962): starting X server on :0
X: unable to open wrapper config file /etc/X11/Xwrapper.config

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to submit@bugs.debian.org.

Wed Jul 12 12:07:56 2006 xdm error (pid 962): server unexpectedly died
Wed Jul 12 12:08:11 2006 xdm error (pid 962): server for display :0 can't be started, session disabled

HappyTux 07-12-2006 11:43 AM

A quick search here seems to say you need to reconfigure the xserver-common package

Code:

apt-file search Xwrapper.config
xserver-common: usr/share/man/man5/Xwrapper.config.5.gz

If necessary you could try to use mine.

Code:

# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the x11-common
# package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the x11-common package
# *only* if it has not been modified since the last upgrade of that package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#  dpkg-reconfigure x11-common
allowed_users=console
nice_value=0

Code:

ls -l /etc/X11/Xwrapper.config
-rw------- 1 root root 614 2006-05-04 16:42 /etc/X11/Xwrapper.config

It is for the Xorg server but I doubt the settings have changed much.

gabsik 07-12-2006 08:34 PM

Thanks for the copy of the Xwrapper.config but i still get that ugly minimal x window system .This caos is also because a xorg repository by accident substituted the present xserver-xfree86 that is what i want ... what other files are present in /etc/X11 ?
Quote:

root@www:~# ls /etc/X11/
app-defaults twm XF86Config-4 Xwrapper.config
blackbox X XF86Config-4-20060708-0519
default-display-manager xdm xfce4
... this is mine ... xinit dir is missing , fonts are missing , Xsession.d ....

HappyTux 07-12-2006 09:02 PM

Quote:

Originally Posted by gabsik
Thanks for the copy of the Xwrapper.config but i still get that ugly minimal x window system .This caos is also because a xorg repository by accident substituted the present xserver-xfree86 that is what i want ... what other files are present in /etc/X11 ?

... this is mine ... xinit dir is missing , fonts are missing , Xsession.d ....

Code:

ls -l /etc/X11/
total 57
drwxr-xr-x 2 root root  1096 2006-07-05 19:30 app-defaults
-rw-r--r-- 1 root root    13 2006-05-04 16:51 default-display-manager
drwxr-xr-x 3 root root    72 2006-05-04 16:44 fonts
drwxr-xr-x 2 root root  152 2006-07-08 18:51 imwheel
-rw-r--r-- 1 root root 17371 2006-05-03 01:21 rgb.txt
lrwxrwxrwx 1 root root    13 2006-05-04 16:44 X -> /usr/bin/Xorg
-rw-r--r-- 1 root root    99 2006-06-15 23:10 xawtvrc
drwxr-xr-x 2 root root  104 2006-07-05 19:30 xinit
-rw-r--r-- 1 root root  5483 2006-06-22 00:28 xorg.conf
-rw-r--r-- 1 root root  2796 2006-05-04 16:47 xorg.conf-xorg7original
drwxr-xr-x 2 root root    48 2006-05-03 01:53 Xresources
-rw-r--r-- 1 root root  3929 2006-05-18 23:45 Xsession
drwxr-xr-x 2 root root  336 2006-07-08 18:54 Xsession.d
-rw-r--r-- 1 root root  265 2006-05-03 01:21 Xsession.options
-rw-r--r-- 1 root root    19 2006-07-11 19:21 XvMCConfig
-rw------- 1 root root  614 2006-05-04 16:42 Xwrapper.config

You may be better off removing all X packages with the --purge option then making sure that you only have the sources for sarge in your sources.list file then reinstall X again if this does not work then I would save my /home files and do a fresh install.

gabsik 07-13-2006 08:58 AM

Quote:

Originally Posted by HappyTux
You may be better off removing all X packages with the --purge option then making sure that you only have the sources for sarge in your sources.list file then reinstall X again if this does not work then I would save my /home files and do a fresh install.

I have already installed reinstalled X.Doing a fresh install it's going to happen , not now i have to finish a site for job ....


All times are GMT -5. The time now is 08:32 PM.