You are not logged in.
Pages: 1
Topic closed
I've seen a couple similar threads but most are old and haven't helped. I was getting along just fine without a login manager but I read in a different thread that USB automounting and such with Systemd and polkit (no Consolekit) won't work with startx alone. My .xinitrc file works fine with startx otherwise. When I try to log in with Slim, though, the screen just hangs there with Slim's wallpaper. I can still switch over to another TTY and startx normally.
Slim was installed as normal. I'm running it via
systemctl enable slim.service/var/log/slim.log only shows this:
slim: waiting for X server to begin accepting connections./etc/slim.conf:
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /usr/bin/systemctl halt
reboot_cmd /usr/bin/systemctl reboot
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/bin/systemctl suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
#authfile /var/run/slim.auth
authfile /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 be overriden by the command line
# options "-d" and "-nodaemon"
# 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 dwm
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# 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
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme archlinux-darch-grey
# Lock file
#lockfile /var/lock/slim.lock
lockfile /run/lock/slim.lock
# Log file
logfile /var/log/slim.logI modified the lock and auth file locations to match the recent filesystem changes (should a bug report be filed about that?) but it didn't help. I also modified the power control commands to use the Systemd commands but that shouldn't matter. The rest of it is the default. No errors jump out at me here but I understand that this file is the #1 culprit for such Slim errors.
.xinitrc
#!/bin/bash
DEFAULT_SESSION=dwm
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Keyboard
setxkbmap dvorak -option ctrl:nocaps
# Disable touchpad while typing
syndaemon -t -k -i 2 -d &
# Set up fonts
xset +fp /usr/share/fonts/local/
xset fp rehash
# Load Xresources
[[ -e ~/.Xresources ]] && xrdb -merge ~/.Xresources
# Conky > dwm bar
conky | while read -r; do xsetroot -name "$REPLY"; done &
# Set wallpaper
sh ~/.fehbg &
# newsbeuter
st -t "Newsbeuter" -e newsbeuter &
# uzbl
export UZBL_DOWNLOAD_DIR=/home/brandon/Downloads
emacs --daemon &
case $1 in
dwm)
# Launch dwm
exec dwm
;;
stumpwm)
# Launch stumpwm
exec /usr/bin/stumpwm
;;
*)
exec $DEFAULT_SESSION
;;
esac/etc/pam.d/slim:
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so
auth required pam_unix.so
auth optional pam_mount.so
account required pam_unix.so
password required pam_unix.so
password optional pam_mount.so
session required pam_limits.so
session required pam_unix.so
session optional pam_mount.so
session optional pam_loginuid.so
session optional pam_systemd.soI added pam_mount because my /home directory is encrypted. Also, the systemd line originally started with a '-' which I removed, but to no avail.
$ ps -e | grep slim
309 ? 00:00:00 slim
408 ? 00:00:00 slimI'm at a complete loss here. I can't find any information on how to get this working.
Incidentally, if anyone can recommend a modern display manager that works well with Systemd and its polkit integration so that I won't need Consolekit, I'd be happy to hear it, unless it's GDM. That pulls in way too many dependencies.
Last edited by jakobcreutzfeldt (2012-07-24 22:10:38)
Offline
I tried setting up LXDM and I was able to log in that way but it didn't respect my .xinitrc. Too tired to deal with this for now...
Offline
See this ::
https://bbs.archlinux.org/viewtopic.php?id=145167
https://bbs.archlinux.org/viewtopic.php?id=145146
Closed on request
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1
Topic closed