It is currently Fri Jul 21, 2017 4:45 am



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Author Message
 Post subject: SLiM login upgrade warning!
PostPosted: Fri Apr 12, 2013 2:47 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
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.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Fri Apr 12, 2013 7:06 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
Uploaded later version slim_1.3.6.5.3 that should avoid this.
User may need to set up autologin again.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Sat Apr 13, 2013 11:42 am 
Offline

Joined: Fri Apr 05, 2013 10:39 pm
Posts: 5
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 :) The memory leakage is gone, no processes are left running when a user logs out. :)


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Sat Apr 13, 2013 11:56 am 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
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

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 12:12 pm 
Slim updated again this morning (AntiX 13 64 Bit) and after shutting down a restarting all I get is a black screen. I tired that thing with changing "demo" to "alan" but still nothing. I can't even do an ctrl/alt/F1 to get a console.


Top
  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 12:46 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
There should be a backup copy of slim.conf in /etc/.

Can you post the contents of /etc/slim.conf.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 2:02 pm 
This is the version on the 64 Bit Box:

Code:
# 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


But I notice on this box, which I haven't updated, it goes:

Code:
xserver_arguments   -dpi 96 -nolisten tcp


Running on the live disk and checking /var/slim.log with Rox, it's saying

Code:
slim: pam_open_session(): user not known to the underlying authentication module


Top
  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 2:21 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
You haven't set default user correctly. You forgot to remove the #

default_user alan

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 2:30 pm 
My humble apologies anticapitalista. I'm having a senior moment day today. :oops:

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. :oops:


Top
  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 2:36 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
LOL! Never mind, your slim.conf does look wrong though.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 2:46 pm 
Now I can see it proerly:

Code:
# 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


Top
  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 2:57 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5879
Location: Greece
# 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

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: SLiM login upgrade warning!
PostPosted: Mon Apr 22, 2013 3:09 pm 
Right, fixed that. I should know better. As a Fluxbox lover I used slim since back when it wasn't being updated by anybody.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred