can't start xfce with startx

Hello,

When i do startx i get i think blackbox.
But i want to use xfce4.
So i installed everything with the ports.
After that i did a % echo "/usr/local/bin/startxfce4" > ~/.xinitrc
but still blackbox is seen.

After that i tried this "#!/bin/sh" > ~/.xsession
but then i get a error message "/bin/sh: Event not found."

What can i do now ?

Roelof
 
The documentation I can find indicates that xfce4-session is the way to start xfce4, not startxfce4. You might want to try that.

Also, I'd recommend checking the initialization files to make sure they contain what you think you put into them.
 
hello Cipher.

My .xinitrc looks like this :

/usr/local/bin/startxfce4

Hello Lowell,

I followed chapter 5.7 of the handbook
which stated :

Now, tell the X server to launch XFce the next time X is started. Simply type this:

% echo "/usr/local/bin/startxfce4" > ~/.xinitrc

Roelof
 
Adamk,

Yes, i start X with the command startx

Cipher : then also a different windowmanager is started.

Killasmurf : i have no idea why people want to invent the wheel again.

Roelof
 
here's my .xinitrc, as example
Code:
xsetroot -solid black &
rm -Rf ~/Desktop &
xmodmap ~/.fvwm/appconf/xmodmaprc &
exec fvwm >> /tmp/fvwm_$USER.log 2>&1

replace what you need [fvwm with your WM] and post results

from gentoo manual:
.xinitrc
Code:
exec startxfce4

i haven't used xfce, but this should work.
what happens? show logs if any
 
Hello,

Thank you all.
But all your suggestions doesn't work.

I still get a screen with two xterms and a clock.

Can i be that something is missing.
I only did a make & make install & make clean in the direcyory xfce4.

Roelof
 
ericturgeon said:
try this

echo "/usr/X11R6/bin/startxfce4" > ~/.xinitrc

It work for me.

/usr/local/bin/ and /usr/X11R6/bin are the same thing, i.e. hardlinks having the same inode.

Code:
FreeMan# stat -x /usr/local/bin/
  File: "/usr/local/bin/"
  Size: 19456        FileType: Directory
  Mode: (0755/drwxr-xr-x)         Uid: (    0/    root)  Gid: (    0/   wheel)
Device: 0,89   Inode: 29027    Links: 2
Access: Wed Dec 31 18:43:22 2008
Modify: Mon Dec 22 08:49:39 2008
Change: Mon Dec 22 08:49:39 2008



FreeMan# stat -x /usr/X11R6/bin/
  File: "/usr/X11R6/bin/"
  Size: 19456        FileType: Directory
  Mode: (0755/drwxr-xr-x)         Uid: (    0/    root)  Gid: (    0/   wheel)
Device: 0,89   Inode: 29027    Links: 2
Access: Wed Dec 31 18:43:22 2008
Modify: Mon Dec 22 08:49:39 2008
Change: Mon Dec 22 08:49:39 2008


startxfce4 which is a shell script is exactly the same thing.

Note the inodes!:)


Code:
FreeMan# stat -x /usr/local/bin/startxfce4 
  File: "/usr/local/bin/startxfce4"
  Size: 1942         FileType: Regular File
  Mode: (0555/-r-xr-xr-x)         Uid: (    0/    root)  Gid: (    0/   wheel)
Device: 0,89   Inode: 33824    Links: 1
Access: Wed Dec 31 18:51:11 2008
Modify: Wed Feb 13 20:21:13 2008
Change: Sat Dec 20 19:56:27 2008



FreeMan# stat -x /usr/X11R6/bin/startxfce4 
  File: "/usr/X11R6/bin/startxfce4"
  Size: 1942         FileType: Regular File
  Mode: (0555/-r-xr-xr-x)         Uid: (    0/    root)  Gid: (    0/   wheel)
Device: 0,89   Inode: 33824    Links: 1
Access: Wed Dec 31 18:51:11 2008
Modify: Wed Feb 13 20:21:13 2008
Change: Sat Dec 20 19:56:27 2008
 
oke, i would do that.
But I'm a newbie and i have no clue how to do that.
When i do startx and logging off with ctrl alt backspace i only see the breaking part.

Roelof
 
OK. Problem solved through PM's exchange.
What we did exactly was:

Code:
echo "/usr/local/bin/startxfce4" > /root/.xinitrc

and then launch X as root.
 
anemos said:
and then launch X as root.

Please don't do this. Pretty please. Pretty please with sugar on top.

Code:
[mart@bsddesktop ~]$ ls -la .xinitrc
-rw-r--r--  1 mart  mart  26 Dec  4 17:26 .xinitrc
[mart@bsddesktop ~]$ cat .xinitrc 
/usr/local/bin/startxfce4

What does yours look like?
 
simple

$ee .xsession
#exec twm
#exec any windowmanager you like to use
exec startxfce4

$ln -s .xsession .xinitrc
$startx
 
Back
Top