You are not logged in.

#1 2008-12-31 20:25:11

Spychacz
Member
Registered: 2008-12-31
Posts: 16

[sloved] Slim won't login

Hello

I'm Ubuntu user and very fresh user of Archlinux. I was installed that os + xorg + nvidia and xfce and all works fine - when i load Arch then I must write login + password and next startxfce4 and I have XFCE on the desktop. Now I wanna have login screen so I was install SLIM.

I write in terminal

pacman -Sy slim

next

nano /etc/inittab

and change

id:3:initdefault:

to

id:5:initdefault:

next

nano /etc/rc.conf

and change

DAEMONS=(syslogd klogd !pcmcia network netfs crond)

to

DAEMONS=(syslogd klogd !pcmcia network netfs crond slim)

reboot

now I have beautiful login screen and when I write login and next password then I have black screen and next.... the same login screen - can you write me why???

best regards and Happy New Year!

Last edited by Spychacz (2009-01-01 13:57:19)

Offline

#2 2008-12-31 20:35:18

djnm
Member
From: USA
Registered: 2008-12-21
Posts: 78

Re: [sloved] Slim won't login

Can you paste your /etc/slim.conf as well as your ~/.xinitrc?

Last edited by djnm (2008-12-31 20:36:10)


br0tat0chip in #archlinux and on freenode

Offline

#3 2008-12-31 20:45:23

Spychacz
Member
Registered: 2008-12-31
Posts: 16

Re: [sloved] Slim won't login

my /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            /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 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            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

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

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

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

my/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

Offline

#4 2008-12-31 20:51:32

djnm
Member
From: USA
Registered: 2008-12-21
Posts: 78

Re: [sloved] Slim won't login

Make a file in your home (~) directory called .xinitrc and put this in it.

exec xfce4-session

Along with anything else you would like to have autostart at login.

Then try.


br0tat0chip in #archlinux and on freenode

Offline

#5 2008-12-31 21:10:16

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: [sloved] Slim won't login

The problem is that you enabled BOTH methods of starting slim.  Only use one method.  Either start it as a daemon in rc.conf and set your default runlevel back to 3, or leave your runlevel at 5 and remove the daemon from rc.conf.

Edit: Typos.

Last edited by peart (2008-12-31 23:44:22)

Offline

#6 2008-12-31 23:38:16

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: [sloved] Slim won't login

peart wrote:

The problem is that enabled BOTH methods of starting slim.  Only use one method.  Either start it as a daemon in rc.conf and set your default runlevel back to 3, or leave your runlevel at 3 and remove the daemon from rc.conf.

+1, remove the daemon smile

Offline

#7 2009-01-01 11:28:47

Spychacz
Member
Registered: 2008-12-31
Posts: 16

Re: [sloved] Slim won't login

ok now all working good - thank you very much!

Best regards

Offline

Board footer

Powered by FluxBB