Como configurar slim [Solucionado]
Hola a todos,
Tengo instalado slim pero no consigo hacer que funcione con múltiples entornos de escritorio (xfce4 fluxbox, etc)
Presionando F1 deberian aparecer las diferentes opciones pero no consigo hacer que funcionen.
Os dejo los siguientes ficheros que creo que son los que hay que tocar /etc/slim.conf y /root/.xinitrc
Muchas gracias
/etc/slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
default_xserver /usr/X11R6/bin/X
#xserver_arguments -dpi 75
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/X11R6/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/X11R6/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
numlock off
# 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 - ~/.xsession %session
# login_cmd exec /bin/bash -login /etc/X11/Xsession %session
login_cmd exec /bin/bash - ~/.xinitrc %session
# 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
# 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 startxfce4,openbox,ion3,icewm,wmaker,blackbox
sessions gnome-session,startkde,startxfce4,icewm-session,startfluxbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd scrot /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 debian-moreblue-orbit
current_theme fingerprint
# Lock file
lockfile /var/run/slim.lock
# Log file
logfile /var/log/slim.log
/root/.xinitrc
#!/bin/bash
DEFAULTSESSION=startfluxbox
case "$1" in
"GNOME")
exec gnome-session
;;
"KDE")
exec startkde
;;
"XFCE4")
exec startxfce4
;;
"ICEWM")
exec icewm-session
;;
"FLUXBOX")
exec startfluxbox
;;
*)
exec $DEFAULTSESSION
;;
esac
#exec startxfce4
- Inicie sesión o regístrese para enviar comentarios
- 1379 lecturas


Por qué .xinitrc está en el directorio /root
/root/.xinitrc
#!/bin/bashDEFAULTSESSION=startfluxbox
case "$1" in
"GNOME")
exec gnome-session
;;
"KDE")
exec startkde
;;
"XFCE4")
exec startxfce4
;;
"ICEWM")
exec icewm-session
;;
"FLUXBOX")
exec startfluxbox
;;
*)
exec $DEFAULTSESSION
;;
esac
#exec startxfce4
El script de slim te dice que lee ~/.xinitrc que es igual a decir /home/tu_usuario/.xinitrc
# 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 - ~/.xsession %session
# login_cmd exec /bin/bash -login /etc/X11/Xsession %session
login_cmd exec /bin/bash - ~/.xinitrc %session
En tu caso probaria copiar/crear en tu usuario el script de .xinitrc (/home/tu_usuario/.xinitrc)
Saludos
# 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 startxfce4,openbox,ion3,icewm,wmaker,blackbox
sessions gnome-session,startkde,startxfce4,icewm-session,startfluxbox
El error lo tenes acá , es
sessions gnome,kde,xfce4,icewm,/root/.xinitrc
#!/bin/bash
DEFAULTSESSION=startfluxbox
case "$1" in
"GNOME")
exec gnome-session
;;
"KDE")
exec startkde
;;
"XFCE4")
exec startxfce4
;;
"ICEWM")
exec icewm-session
;;
"FLUXBOX")
exec startfluxbox
;;
*)
exec $DEFAULTSESSION
;;
esac
Y acá ,reemplaza cada entrada por minúsculas y sin comillas ( tal cual en el archivo /etc/slim.conf Ejemp:
kde)exec startkde
;;
fluxbox)
exec startfluxbox
;;
Edito: Por cierto tal como dice Froggy ¿por que el .xinitrc en el directorio de root ?
Lectura :
http://manualinux.my-place.us/slim.html
muchas gracias por vuestras contestaciones, ya hestá solucionado.
La verdad es que en mi anterior distribución (Gentoo) con los ficheros que publique funcionaba bien, de hecho .xinitrc tenía que estar en root porque slim siempre leía las opciones disponibles desde ahí.
De hecho en slim.conf no tenía puesta ninguna sesion.
Bueno ya está todos solucionado, un saludo y muchas gracias
Podes ir al inicio del tema ,debajo de tu avatar hay unas opciones ,con una das por solucionado