There is a new slim deb in the repository.
You should be prompted to update conf file to dev version (or something like that), choose N (no ) which is default.
If you chose Y(es) then you may find you get an X cursor at desktop.
To fix: Ctrl Alt F1 to get out of X.
Login as root
Use mc or nano to edit /etc/slim.conf to change default user from demo to your username.
Save and reboot into X.
topic title: SLiM login upgrade warning!
13 posts
• Page 1 of 1
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#2
Uploaded later version slim_1.3.6.5.3 that should avoid this.
User may need to set up autologin again.
User may need to set up autologin again.
- Posts: 5 Dschzz
- Joined: 05 Apr 2013
#3
Loggin in using SLiM starts an instance of dbus-launch and one of dbus-daemon.
Logging out leaves them running as the no-more-logged-in user.
Logging in again starts another instance of them, so, the more you login and logout using SLiM, the more dbus-* processes are left in memory.
The fix:
- login as root
- open /etc/slim.conf with a text editor
- find the following line:
login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
- and change it to
login_cmd exec dbus-launch --exit-with-session /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
- done.
Now the dbus-* processes exit when the user logs out __{{emoticon}}__ The memory leakage is gone, no processes are left running when a user logs out. __{{emoticon}}__
Logging out leaves them running as the no-more-logged-in user.
Logging in again starts another instance of them, so, the more you login and logout using SLiM, the more dbus-* processes are left in memory.
The fix:
- login as root
- open /etc/slim.conf with a text editor
- find the following line:
login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
- and change it to
login_cmd exec dbus-launch --exit-with-session /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
- done.
Now the dbus-* processes exit when the user logs out __{{emoticon}}__ The memory leakage is gone, no processes are left running when a user logs out. __{{emoticon}}__
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#4
Thanks for that Dschzz.
The latest slim doesn't need the dbus-launch anymore, so the line should read:
login_cmd exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
The latest slim doesn't need the dbus-launch anymore, so the line should read:
login_cmd exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#6
There should be a backup copy of slim.conf in /etc/.
Can you post the contents of /etc/slim.conf.
Can you post the contents of /etc/slim.conf.
-
Alanarchy
Posts 0 Alanarchy
#7
This is the version on the 64 Bit Box:
But I notice on this box, which I haven't updated, it goes:
Running on the live disk and checking /var/slim.log with Rox, it's saying
Code: Select all
# 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/bin/X
xserver_arguments -nolisten tcp
# Commands for halt, login, etc.
halt_cmd /usr/local/bin/shutdown.sh
reboot_cmd /usr/local/bin/reboot.sh
console_cmd /usr/bin/urxvt -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 off
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
hidecursor true
# 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/bash -login /etc/X11/Xsession %session
login_cmd exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
# login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
# 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 /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user
# 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 icewm,Rox-icewm,fluxbox,Rox-fluxbox,jwm,Rox-jwm,dwm,wmii
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd scrot /tmp/slim.png
# welcome message. Available variables: %host, %domain
welcome_msg (Press F1 to toggle sessions)
# shutdown / reboot messages
shutdown_msg The system is shutting down...
reboot_msg The system is rebooting...
# 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 yes
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user alan
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme antiX
# Lock file
lockfile /var/run/slim.lock
# Log file
logfile /var/log/slim.log
Code: Select all
xserver_arguments -dpi 96 -nolisten tcp
Code: Select all
slim: pam_open_session(): user not known to the underlying authentication module
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#8
You haven't set default user correctly. You forgot to remove the #
default_user alan
default_user alan
-
Alanarchy
Posts 0 Alanarchy
#9
My humble apologies anticapitalista. I'm having a senior moment day today. __{{emoticon}}__
Xorg-server updated yesterday, and I forgot about reinstalling the graphics drivers. smxi fixed things in about a minute.
I'll go stand in the corner now for my stupidity. __{{emoticon}}__
Xorg-server updated yesterday, and I forgot about reinstalling the graphics drivers. smxi fixed things in about a minute.
I'll go stand in the corner now for my stupidity. __{{emoticon}}__
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#10
LOL! Never mind, your slim.conf does look wrong though.
-
Alanarchy
Posts 0 Alanarchy
#11
Now I can see it proerly:
Code: Select all
# 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/bin/X
xserver_arguments -nolisten tcp
# Commands for halt, login, etc.
halt_cmd /usr/local/bin/persist-config --shutdown --command halt
reboot_cmd /usr/local/bin/persist-config --shutdown --command reboot
console_cmd /usr/bin/urxvt -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 off
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
hidecursor true
# 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/bash -login /etc/X11/Xsession %session
login_cmd exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
# login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
# 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 /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user
# 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 icewm,Rox-icewm,fluxbox,Rox-fluxbox,jwm,Rox-jwm,dwm,wmii
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd scrot /tmp/slim.png
# welcome message. Available variables: %host, %domain
welcome_msg (Press F1 to toggle sessions)
# shutdown / reboot messages
shutdown_msg The system is shutting down...
reboot_msg The system is rebooting...
# 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 yes
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user alan
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme antiX
# Lock file
lockfile /var/run/slim.lock
# Log file
logfile /var/log/slim.log
-
anticapitalista
- Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#12
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user alan
should be
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user alan
# for avoid pre-loading the username.
#default_user alan
should be
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user alan