You are not logged in.

#1 2010-02-27 17:45:56

javiertw89
Member
Registered: 2010-02-25
Posts: 16

[SOLVED] Trouble with my Display Manager

Hello to everyone, I have the following problem.

I've recently installed XFCE 4, and it works properly, but I can only start session as root. I want to start the session as javier, which is the user I've already created and used with no problem in KDE.

Do you think I should install Slim as my Display Manager?

Thanks in advance.

Last edited by javiertw89 (2010-02-28 15:09:31)

Offline

#2 2010-02-27 22:28:27

burnside
Member
From: Asheville, NC
Registered: 2008-09-27
Posts: 45

Re: [SOLVED] Trouble with my Display Manager

What errors are you getting when you try to start XFCE4 as javier?

Offline

#3 2010-02-27 23:37:39

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Trouble with my Display Manager

Sounds like a problem with the permissions.
I recommend you to install Slim is very lightweight and works for any DE and WM, see the wiki

Offline

#4 2010-02-28 01:47:38

javiertw89
Member
Registered: 2010-02-25
Posts: 16

Re: [SOLVED] Trouble with my Display Manager

Thanks for answering.

It seems that the problem was that I hadn't installed a Display Manager at all.
So I did the following.
* Installed slim, using pacman -S slim
*Added slim to DAEMONS in rc.conf
*Created /home/javier/.xinitrc and wrote the line "exec startxfce4" in it.
*Rebooted

It didn't work, because Arch couldn't start SLIM.

Am I missing anything?

Offline

#5 2010-02-28 01:51:47

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Trouble with my Display Manager

You have to change your inittab file,
and in the last line remove the # simbol for the line:

x:5:respawn:/usr/bin/slim >& /dev/null

Last edited by n0dix (2010-02-28 01:52:06)

Offline

#6 2010-02-28 02:23:19

vaderixor
Member
Registered: 2009-04-07
Posts: 14

Re: [SOLVED] Trouble with my Display Manager

javiertw89 wrote:

Thanks for answering.

It seems that the problem was that I hadn't installed a Display Manager at all.
So I did the following.
* Installed slim, using pacman -S slim
*Added slim to DAEMONS in rc.conf
*Created /home/javier/.xinitrc and wrote the line "exec startxfce4" in it.
*Rebooted

It didn't work, because Arch couldn't start SLIM.

Am I missing anything?

What was the exact error?
It might be easier to just skip a DM entirely.
Put this at the bottom of your .bashrc

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
    startx
    logout
fi

It will allow a simple console login.
Just keep the exec line in your .xinitrc and remove slim from your rc.conf.

Offline

#7 2010-02-28 02:51:47

javiertw89
Member
Registered: 2010-02-25
Posts: 16

Re: [SOLVED] Trouble with my Display Manager

Thanks for answering.

   I did what n0dix says and it didn't work. It seems that slim isn't configured properly.
   I also tried what vaderixor says, and it doesn't work because I need sudo permissions to start xfce 4. Do you know any group I could add my user to in order to start xfce 4 without using the sudo command?

Offline

#8 2010-02-28 03:01:46

vaderixor
Member
Registered: 2009-04-07
Posts: 14

Re: [SOLVED] Trouble with my Display Manager

javiertw89 wrote:

Thanks for answering.

   I did what n0dix says and it didn't work. It seems that slim isn't configured properly.
   I also tried what vaderixor says, and it doesn't work because I need sudo permissions to start xfce 4. Do you know any group I could add my user to in order to start xfce 4 without using the sudo command?

What groups are you in right now?

Offline

#9 2010-02-28 03:41:45

javiertw89
Member
Registered: 2010-02-25
Posts: 16

Re: [SOLVED] Trouble with my Display Manager

I belong to the following groups:
   lp wheel video audio optical floppy storage vboxusers javier

Offline

#10 2010-02-28 03:47:16

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Trouble with my Display Manager

Show your inittab and slim.conf, and .xinitrc, please.

Offline

#11 2010-02-28 04:36:31

javiertw89
Member
Registered: 2010-02-25
Posts: 16

Re: [SOLVED] Trouble with my Display Manager

I ommited commented lines
########rc.conf############

LOCALE="es_ES.utf8"
HARDWARECLOCK=""
USEDIRECTISA="no"
TIMEZONE=""
KEYMAP="es"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MODULES=(vboxdrv)

USELVM="no"

HOSTNAME="javier"
eth0="dhcp"
INTERFACES=(eth0)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng network netfs crond hal fam )

#########inittab##########


id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

x:5:respawn:/usr/bin/slim >& /dev/null


###########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,icewm,wmaker,blackbox

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


# 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

Offline

#12 2010-02-28 04:40:52

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Trouble with my Display Manager

It seems ok. please, check your /var/log/slim.log.

Offline

#13 2010-02-28 05:55:30

javiertw89
Member
Registered: 2010-02-25
Posts: 16

Re: [SOLVED] Trouble with my Display Manager

/var/log/slim.log doesn't exist. Obviously, something is wrong. :S:S:S

Offline

#14 2010-02-28 13:47:52

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Trouble with my Display Manager

When you install slim you get an error or something?
Check the permissions of your files in /home/javier are correct, i mean, without the root user.

Last edited by n0dix (2010-02-28 15:13:25)

Offline

#15 2010-02-28 15:08:22

javiertw89
Member
Registered: 2010-02-25
Posts: 16

Re: [SOLVED] Trouble with my Display Manager

Hey! That was my problem! I didn't have permission to access all the $HOME. I gave myself the permissions and could login from the console.

I would like to use SLIM, but this is better than anything.

Thank you very much, n0dix and vaderixor; I really appreciate your help.

Offline

#16 2010-02-28 15:15:46

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Trouble with my Display Manager

I'm glad that solved. big_smile

Last edited by n0dix (2010-02-28 15:17:17)

Offline

Board footer

Powered by FluxBB