You are not logged in.

#1 2007-07-28 19:18:23

miggols99
Member
Registered: 2007-06-10
Posts: 424

Getting SLiM to work... [SOLVED!]

I recently installed Xfce and SLiM, but SLiM refuses to login. When I type in my username and password, it just comes back to the login screen again. Are there some configuration files I need to edit?

Last edited by miggols99 (2007-07-29 12:49:36)

Offline

#2 2007-07-28 19:40:10

shen
Member
Registered: 2003-09-05
Posts: 272
Website

Re: Getting SLiM to work... [SOLVED!]

http://wiki.archlinux.org/index.php/SLIM

Bsically you just need to add the entry to .xinitrc to launch xfce which if memory serves it is exec xfce-session and that should work. Also read that wiki and the sites docs as well.

Offline

#3 2007-07-28 20:13:27

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Getting SLiM to work... [SOLVED!]

The .xinitrc  addition in the Wiki didn't work for me, but there's one in /etc/xdg/xfce4 that does (just copy it to ~/.xinitrc). Unfortunately it doesn't allow a choice of WMs (and my shell scripting skills aren't up to fixing it) but if miggols99 isn't bothered about that, it will at least get Xfce working with SLiM.


0 Ok, 0:1

Offline

#4 2007-07-28 20:37:17

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: Getting SLiM to work... [SOLVED!]

I only have Xfce and don't plan on adding anything else. Will my /etc/slim.conf help? I think I might have done something to it.

# 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

# 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/lock/slim.lock

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

Last edited by miggols99 (2007-07-28 20:41:14)

Offline

#5 2007-07-28 21:17:30

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Getting SLiM to work... [SOLVED!]

dunc wrote:

The .xinitrc  addition in the Wiki didn't work for me, but there's one in /etc/xdg/xfce4 that does (just copy it to ~/.xinitrc). Unfortunately it doesn't allow a choice of WMs (and my shell scripting skills aren't up to fixing it) but if miggols99 isn't bothered about that, it will at least get Xfce working with SLiM.

SLiM has no session support - it will not remember which DE/WM you last used.

You can make SLiM switch between environments though with one of the Fx buttons, then log in.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2007-07-29 01:37:06

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Getting SLiM to work... [SOLVED!]

B wrote:
dunc wrote:

The .xinitrc  addition in the Wiki didn't work for me, but there's one in /etc/xdg/xfce4 that does (just copy it to ~/.xinitrc). Unfortunately it doesn't allow a choice of WMs (and my shell scripting skills aren't up to fixing it) but if miggols99 isn't bothered about that, it will at least get Xfce working with SLiM.

SLiM has no session support - it will not remember which DE/WM you last used.

You can make SLiM switch between environments though with one of the Fx buttons, then log in.

Not if you use that xinitrc, you can't. smile It's only for Xfce: the one in the wiki checks the argument passed to it by SLiM, and loads the appropriate WM; that one doesn't. Whatever you select with Fx, it still loads Xfce. Not a problem if it's the only WM you use, but it's something anyone trying it should be aware of.

It shouldn't be too hard to make it work "properly", but I was only trying SLiM out of curiosity (I'm back with GDM now), and I simply couldn't be bothered. tongue


0 Ok, 0:1

Offline

#7 2007-07-29 12:49:18

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: Getting SLiM to work... [SOLVED!]

Found the solution! All I had to do was edit the .xinitrc in my home directory. Uncomment "exec startxfce4". It was not the other one. Thanks anyway! smile

Offline

Board footer

Powered by FluxBB