View Full Version : [XFCE] can't start xfce with startx
roelof
December 30th, 2008, 18:56
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
cipher
December 30th, 2008, 19:04
what does you .xinitrc look like?
Lowell
December 30th, 2008, 19:19
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.
roelof
December 30th, 2008, 20:00
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
December 30th, 2008, 20:04
How are you starting X? Are you running the "startx" command?
Adam
cipher
December 30th, 2008, 20:17
What happens if you put exec startxfce4 in .xinitrc instead?
graudeejs
December 30th, 2008, 20:53
startx to start X
Why ppl are inventing wheel again?
roelof
December 31st, 2008, 11:10
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
December 31st, 2008, 14:23
here's my .xinitrc, as example
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
exec startxfce4
i haven't used xfce, but this should work.
what happens? show logs if any
slimdog360
December 31st, 2008, 15:44
or better yet
exec xfce4-session
adamk
December 31st, 2008, 16:09
exec startxfce4
Has always worked for me.
Adam
ericturgeon
December 31st, 2008, 16:16
try this
echo "/usr/X11R6/bin/startxfce4" > ~/.xinitrc
It work for me.
roelof
December 31st, 2008, 17:19
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
December 31st, 2008, 17:22
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/...
roelof
December 31st, 2008, 17:31
yep,
That's correct.
When i do a whereis xfce4 i get the /usr/local/bin directory
Roelof
anemos
December 31st, 2008, 17:57
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.
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!:)
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
roelof
December 31st, 2008, 18:17
oke,
That's clear.
But why can't i start xfce4 with the command startx
Roelof
anemos
December 31st, 2008, 18:28
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 ?
roelof
December 31st, 2008, 18:46
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
graudeejs
December 31st, 2008, 19:20
startx > somefile.txt
then post content of file
roelof
December 31st, 2008, 19:42
hello killasmurf
When i do a startx > x.txt i get a empty file.
Roelof
anemos
December 31st, 2008, 20:03
OK. Problem solved through PM's exchange.
What we did exactly was:
echo "/usr/local/bin/startxfce4" > /root/.xinitrc
and then launch X as root.
mart
January 1st, 2009, 00:51
and then launch X as root.
Please don't do this. Pretty please. Pretty please with sugar on top.
[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
January 1st, 2009, 02:43
$ee .xsession
#exec twm
#exec any windowmanager you like to use
exec startxfce4
$ln -s .xsession .xinitrc
$startx
graudeejs
January 1st, 2009, 10:46
why did you do $ln -s .xsession .xinitrc?
As far as i know ain't no point in that.
fbsd24h
January 1st, 2009, 12:35
we use
$ln -s .xsession .xinitrc
cause when you want to use with a login panel like xdm , kdm , gdm we must have .xsession file to start that window manager .�e
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.