can't start xfce with startx

roelof

Well-Known Member

Reaction score: 2
Messages: 276

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
 

Lowell

Member

Reaction score: 18
Messages: 94

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.
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

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

Daemon

Reaction score: 266
Messages: 1,622

How are you starting X? Are you running the "startx" command?

Adam
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

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
 

graudeejs

Son of Beastie

Reaction score: 692
Messages: 4,615

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
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

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
 

graudeejs

Son of Beastie

Reaction score: 692
Messages: 4,615

ericturgeon said:
try this

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

It work for me.
this looks like linuxism....
in FreeBSD ports/packages are added to /usr/local/...
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

yep,

That's correct.
When i do a whereis xfce4 i get the /usr/local/bin directory

Roelof
 

anemos

Member

Reaction score: 16
Messages: 58

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
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

oke,

That's clear.
But why can't i start xfce4 with the command startx

Roelof
 

anemos

Member

Reaction score: 16
Messages: 58

roelof said:
oke,

That's clear.
But why can't i start xfce4 with the command startx

Roelof
Could you please post the exact output when typing startx ?
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

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
 
OP
OP
R

roelof

Well-Known Member

Reaction score: 2
Messages: 276

hello killasmurf

When i do a startx > x.txt i get a empty file.

Roelof
 

anemos

Member

Reaction score: 16
Messages: 58

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.
 

mart

Member

Reaction score: 18
Messages: 48

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?
 

fbsd24h

Member


Messages: 20

simple

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

$ln -s .xsession .xinitrc
$startx
 

graudeejs

Son of Beastie

Reaction score: 692
Messages: 4,615

why did you do $ln -s .xsession .xinitrc?
As far as i know ain't no point in that.
 
Top