1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can't start xfce with startx

Discussion in 'Other Window Managers' started by roelof, Dec 30, 2008.

  1. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    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
     
  2. cipher

    cipher New Member

    Messages:
    18
    Likes Received:
    0
    what does you .xinitrc look like?
     
  3. Lowell

    Lowell New Member

    Messages:
    94
    Likes Received:
    0
    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.
     
  4. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    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
     
  5. adamk

    adamk New Member

    Messages:
    1,624
    Likes Received:
    0
    How are you starting X? Are you running the "startx" command?

    Adam
     
  6. cipher

    cipher New Member

    Messages:
    18
    Likes Received:
    0
    What happens if you put exec startxfce4 in .xinitrc instead?
     
  7. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    startx to start X
    Why ppl are inventing wheel again?
     
  8. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    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
     
  9. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    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
     
  10. slimdog360

    slimdog360 New Member

    Messages:
    1
    Likes Received:
    0
    or better yet

    exec xfce4-session
     
  11. adamk

    adamk New Member

    Messages:
    1,624
    Likes Received:
    0
    exec startxfce4

    Has always worked for me.

    Adam
     
  12. ericturgeon

    ericturgeon New Member

    Messages:
    341
    Likes Received:
    0
    try this

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

    It work for me.
     
  13. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    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
     
  14. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    this looks like linuxism....
    in FreeBSD ports/packages are added to /usr/local/...
     
  15. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    yep,

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

    Roelof
     
  16. anemos

    anemos New Member

    Messages:
    58
    Likes Received:
    0
    /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 
    
     
  17. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    oke,

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

    Roelof
     
  18. anemos

    anemos New Member

    Messages:
    58
    Likes Received:
    0
    Could you please post the exact output when typing startx ?
     
  19. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    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
     
  20. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    startx > somefile.txt
    then post content of file
     
  21. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    hello killasmurf

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

    Roelof
     
  22. anemos

    anemos New Member

    Messages:
    58
    Likes Received:
    0
    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.
     
  23. mart

    mart New Member

    Messages:
    48
    Likes Received:
    0
    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?
     
  24. fbsd24h

    fbsd24h New Member

    Messages:
    21
    Likes Received:
    0
    simple

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

    $ln -s .xsession .xinitrc
    $startx
     
  25. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    why did you do $ln -s .xsession .xinitrc?
    As far as i know ain't no point in that.