Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Booting into xfce4

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

Booting into xfce4

  • Quote

Post by blossa » Thu Apr 30, 2009 7:17 am

I have been running xfce4 for some time now and now I wanted to have a graphical loggin.... So I installed xdm and slim after this guide: http://www.gentoo.org/doc/en/xfce-config.xml

When I have booted, slim starts and i can log in, however xfce4 don't start after that. To be honest I don't know what is starting... :oops: but i get three terminal windows and a clock. How do I get xfce4 to start after that I have logged in?

Code: Select all

# rc-update show 
xdm |      default
/etc/conf.d/xdm

Code: Select all

CHECKVT=7
DISPLAYMANAGER="slim"
/etc/rc.conf

Code: Select all

XSESSION="Xfce4"
The users .xinitrc

Code: Select all

exec startxfce4
QX9650, P5E64WS Pro, 4x1GB
Top
Nerevar
l33t
l33t
User avatar
Posts: 720
Joined: Sat May 31, 2008 7:35 pm

  • Quote

Post by Nerevar » Thu Apr 30, 2009 8:02 am

The startup scripts don't setup a PATH, so try this in your .xinitrc

Code: Select all

exec /usr/bin/startxfce4
FYI: 3 xterms and a clock sounds like the default twm window manager.
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Thu Apr 30, 2009 8:16 am

Thank you for the tips, but that did not work either... As additional info I can confirm that when i log in "non-graphical" and type "startx" xfce4 is starting as it should.

hrm... :D
QX9650, P5E64WS Pro, 4x1GB
Top
Nerevar
l33t
l33t
User avatar
Posts: 720
Joined: Sat May 31, 2008 7:35 pm

  • Quote

Post by Nerevar » Thu Apr 30, 2009 9:06 am

Do you have the login_cmd in slim.conf setup as shown here:
http://www.gentoo-wiki.info/SLiM#Trouble_with_Xfce4
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Thu Apr 30, 2009 9:32 am

Yes I do. But I found a solution now. I don't know if I have done something wrong in the past or so but I commented out the last lines in /etc/X11/xinit/xinitrc and replaced it with "exec startxfce4":

Code: Select all

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/lib64/X11/xinit/.Xresources
sysmodmap=/usr/lib64/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
exec startxfce4
QX9650, P5E64WS Pro, 4x1GB
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Thu Apr 30, 2009 9:56 am

blossa wrote:Yes I do. But I found a solution now. I don't know if I have done something wrong in the past or so but I commented out the last lines in /etc/X11/xinit/xinitrc and replaced it with "exec startxfce4":

Code: Select all

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/lib64/X11/xinit/.Xresources
sysmodmap=/usr/lib64/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
exec startxfce4
You don't need to comment them out, the problem is that your final invocation of xterm is not backgrounded, just add '&' to the last line (I suspect!).
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Top
Nerevar
l33t
l33t
User avatar
Posts: 720
Joined: Sat May 31, 2008 7:35 pm

  • Quote

Post by Nerevar » Thu Apr 30, 2009 11:38 am

What version of xinit do you have installed? I have version 1.0.8-r4 and that file has the following:

Code: Select all

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
xinitdir=/etc/X11
sysresources=$xinitdir/Xresources
sysmodmap=$xinitdir/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

# First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
    XINITRC="$HOME/.xinitrc"
    if [ -x $XINITRC ]; then
        # if the x bit is set on .xinitrc
        # it means the xinitrc is not a
        # shell script but something else
        exec $XINITRC
    else
        exec /bin/sh "$HOME/.xinitrc"
    fi
# If not present, try the system default
elif [ -n "`/etc/X11/chooser.sh`" ]; then
    exec "`/etc/X11/chooser.sh`"
# Failsafe
else
    # 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
fi
I suppose it's possible that I had to modify that file as well since it has the same RCS timestamp as yours. If so, it must have been awhile ago as I certainly don't remember doing that. :)
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Thu Apr 30, 2009 12:30 pm

I have the same version. :)

Code: Select all

# emerge -Dvp xinit

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-apps/xinit-1.0.8-r4  USE="hal pam -debug -minimal" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
It is also very possible that I have modified my file a looong time ago. :D If I get the time, I will try your file. Atm I cannot try it. Thanks for all your help!
QX9650, P5E64WS Pro, 4x1GB
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic