LINUX.ORG.RU

Экранный менеджер


0

0

Помогите разобраться с экранным менеджером. В данном случае это slim. Дистрибутив CRUX 2.3. Осбенность в том что многие конфиги надо создавать самому, что требует дисциплины. В Archlinux этот менеджер заработал.

Вот конфиг с моими комментариями: $ cat /etc/slim.conf:

# Path, X server and arguments (if needed) # Note: -xauth $authfile is automatically appended # Пути проверил: default_path ./:/bin:/usr/bin default_xserver /usr/bin/X xserver_arguments -dpi 96

# Commands for halt, login, etc. # Всё верно, ничего не менял: halt_cmd /sbin/shutdown -h now reboot_cmd /sbin/shutdown -r now console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login " -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login" #suspend_cmd /usr/sbin/suspend

# Full path to the xauth binary xauth_path /usr/bin/xauth

# Xauth file for server authfile /var/run/slim.auth

# Activate numlock when slim starts. Valid values: on|off # Мне так удобней: numlock on

# Hide the mouse cursor (note: does not work with some WMs). # Valid values: true|false

# hidecursor false

# This command is executed after a succesful login. # you can place the %session and %theme variables # to handle launching of specific commands in .xinitrc # depending of chosen session and slim theme # # NOTE: if your system does not have bash you need # to adjust the command according to your preferred shell, # i.e. for freebsd use: # login_cmd exec /bin/sh - ~/.xinitrc %session # Вот здесь ошибка, как root я спокойно захожу в графику, # но как user, возвращаюсь в экран входа # ~/.xinitrc для root и для user абсолютно эдентичен # Менеджер ion3 то есть в ~/.xinitrc exec ion3 # Всё запускается в консоли под user на startx # Параметр %session я опустил, так как использую # только ion3 login_cmd exec /bin/sh -login ~/.xinitrc # Commands executed when starting and exiting a session. # They can be used for registering a X11 session with # sessreg. You can use the %user variable # # sessionstart_cmd some command # sessionstop_cmd some command

# Start in daemon mode. Valid values: yes | no # Note that this can overridden by the command line # option "-d" daemon yes # Я сделал как демон. Тогда можно уронить по Ctrl+Alt+BackSpace

# Available sessions (first one is the default). # The current chosen session name is replaced in the login_cmd # above, so your login command can handle different sessions. # see the xinitrc.sample file shipped with slim sources # sessions xfce4,ion3,wmaker,blackbox # Выбор сессии мне сейчас не нужен, нужно что бы работало # под user а не только для root

# Executed when pressing F11 (requires imagemagick) screenshot_cmd import -window root /slim.png

# welcome message. Available variables: %host, %domain welcome_msg Welcome to %host

# shutdown / reboot messages shutdown_msg The system is halting... reboot_msg The system is rebooting...

# default user, leave blank or remove this line # for avoid pre-loading the username. #default_user simone

# current theme, use comma separated list to specify a set to # randomly choose from current_theme default

# Lock file lockfile /var/run/slim.lock

# Log file logfile /var/log/slim.log ============================================ То есть сейчас графический вход работает только для root и не работает для user Как будто демон slim не находит ~/.xinitrc пользователя. Пользователя я создавал примерно так: useradd ivan -g users -m -d /home/ivan Примерно похожие проблемы были и с xdm и c gdm.

Иван.

★★★

Ответ на: комментарий от Marmirus

cat /var/log/slim.log

/usr/bin/xauth: creating new authority file /var/run/slim.auth

X Window System Version 7.2.0 Release Date: 22 January 2007 X Protocol Version 11, Revision 0, Release 7.2 Build Operating System: Linux 2.6.20 i686 Current Operating System: Linux Panama 2.6.20.3 #1 SMP Tue Jul 10 17:26:42 UTC 2007 i686 Build Date: 01 March 2007 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present 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/Xorg.0.log", Time: Sat Aug 11 18:16:33 2007 (==) Using config file: "/etc/X11/xorg.conf" (**) RADEON(0): RADEONPreInit (**) RADEON(0): RADEONScreenInit a0000000 0 (**) RADEON(0): Map: 0xa0000000, 0x00f00000 (**) RADEON(0): RADEONSave (**) RADEON(0): RADEONSaveMode(0x81ec118) (**) RADEON(0): Read: 0x00100004 0x0006006d 0x00000000 (**) RADEON(0): Read: rd=4, fd=109, pd=6 (**) RADEON(0): RADEONSaveMode returns 0x81ec118 (**) RADEON(0): RADEONInitMemoryMap() : (**) RADEON(0): mem_size : 0x04000000 (**) RADEON(0): MC_FB_LOCATION : 0x3fff3c00 (**) RADEON(0): MC_AGP_LOCATION : 0xffffffc0 (**) RADEON(0): RADEONModeInit() 1280x1024 157.50 1280 1344 1504 1728 1024 1025 1028 1072 (24,32) +H +V 1280x1024 157.50 1280 1344 1504 1728 1024 1025 1028 1072 (24,32) +H +V (**) RADEON(0): Pitch = 10485920 bytes (virtualX = 1280, displayWidth = 1280) (**) RADEON(0): dc=15750, of=31500, fd=132, pd=2 (**) RADEON(0): RADEONInit returns 0x81ecac8 (**) RADEON(0): RADEONRestoreMode() (**) RADEON(0): RADEONRestoreMode(0x81ecac8) (**) RADEON(0): RADEONRestoreMemMapRegisters() : (**) RADEON(0): MC_FB_LOCATION : 0x3fff3c00 (**) RADEON(0): MC_AGP_LOCATION : 0xffffffc0 (**) RADEON(0): Map Changed ! Applying ... (**) RADEON(0): Map applied, resetting engine ... (**) RADEON(0): Updating display base addresses... (**) RADEON(0): Memory map updated. (**) RADEON(0): Programming CRTC1, offset: 0x00000000 (**) RADEON(0): Wrote: 0x00000006 0x00010084 0x00000000 (0x0000a400) (**) RADEON(0): Wrote: rd=6, fd=132, pd=1 (**) RADEON(0): GRPH_BUFFER_CNTL from 20004c4c to 20297c7c (**) RADEON(0): RADEONSaveScreen(0) (**) RADEON(0): Setting up initial surfaces (**) RADEON(0): Initializing fb layer (**) RADEON(0): Setting up accel memmap (**) RADEON(0): Initializing backing store (**) RADEON(0): Setting up final surfaces (**) RADEON(0): Initializing Acceleration (**) RADEON(0): EngineInit (32/32) (**) RADEON(0): Pitch for acceleration = 160 (**) RADEON(0): EngineRestore (32/32) (**) RADEON(0): Initializing DPMS (**) RADEON(0): Initializing Cursor (**) RADEON(0): Initializing color map (**) RADEON(0): Initializing DGA (**) RADEON(0): Initializing Xv (**) RADEON(0): RADEONScreenInit finished (EE) AIGLX: Screen 0 is not DRI capable (**) RADEON(0): RADEONSaveScreen(2) slim: connection to X server lost. slim: unexpected signal 1 slim: xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed. (**) RADEON(0): RADEONCloseScreen (**) RADEON(0): RADEONDRIStop (**) RADEON(0): RADEONDisplayPowerManagementSet(0,0x0) (**) RADEON(0): RADEONRestore (**) RADEON(0): RADEONRestoreMode() (**) RADEON(0): RADEONRestoreMode(0x81ec118) (**) RADEON(0): RADEONRestoreMemMapRegisters() : (**) RADEON(0): MC_FB_LOCATION : 0x3fff3c00 (**) RADEON(0): MC_AGP_LOCATION : 0x003f0000 (**) RADEON(0): Map Changed ! Applying ... (**) RADEON(0): Map applied, resetting engine ... (**) RADEON(0): Updating display base addresses... (**) RADEON(0): Memory map updated. (**) RADEON(0): Programming CRTC1, offset: 0x00000000 (**) RADEON(0): Wrote: 0x00100004 0x0006006d 0x00000000 (0x0000a400) (**) RADEON(0): Wrote: rd=4, fd=109, pd=6 (**) RADEON(0): Disposing accel... (**) RADEON(0): Disposing cusor info (**) RADEON(0): Disposing DGA (**) RADEON(0): Unmapping memory FreeFontPath: FPE "/usr/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing .

baaba ★★★
() автор топика
Ответ на: комментарий от Marmirus

То есть лог эдентичен логу Xorg

baaba ★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.