You are not logged in.

#1 2007-08-07 18:34:42

Fork
Member
Registered: 2007-08-06
Posts: 53

Chosing DE/DM with SLiM

1st - I have tried everything i could find in the wiki about this.

2nd - Its nor working.

Currently i have XFCE and Fluxbox installed. I edited /etc/slim.conf and /etc/X11/xinit/xinitrc to look like so

[root@Salao fork]# cat /etc/X11/xinit/xinitrc
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# start some nice programs
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

# the following variable defines the session which is started if the user
# doesn't explicitely select a session
DEFAULT_SESSION=xfce4

case $1 in
fluxbox)
        exec startfluxbox
        ;;
*)
        exec $DEFAULT_SESSION
        ;;
esac
[root@Salao fork]# cat /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/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# 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
login_cmd           exec /bin/bash -login ~/.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            xfce4,fluxbox

# 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        tiago

# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       default,debian-moreblue,slim-archlinux,wave

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

# Log file
logfile             /var/log/slim.log

Any help?

Offline

#2 2007-08-08 01:36:35

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Chosing DE/DM with SLiM

You need to be more specific than "It's not working".  What exactly is happening, is slim opening at all? What happens when you type startx from a command line (without starting slim)? Can you start xfce or fluxbox from a command line.  Can you post your .xinitrc (note the period in front, this in in your home folder)

Offline

#3 2007-08-08 07:03:28

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Chosing DE/DM with SLiM

mcmillain is right, check your slim.conf in the line `login_cmd', it starts ~/.xinitrc. Not `/etc/X11/xinit/xinitrc', you can change slim.conf to execute the global xinitrc file or adjust your .xinitrc.
If you decide for the former, remove (or comment out) the `start some nice  programs' section.

Offline

#4 2007-08-08 10:26:59

Fork
Member
Registered: 2007-08-06
Posts: 53

Re: Chosing DE/DM with SLiM

What happens is that i press F1 at log i cicles trough the various DEs but it never starts the selected one, its starts the one by default (XFCE) I think you are right, i will edit .xinitrc and see what i get

Offline

Board footer

Powered by FluxBB