Results 1 to 3 of 3

Thread: Choosing DE with startx

  1. #1
    Join Date
    Sep 2012
    Beans
    15

    Choosing DE with startx

    I know how to change /etc/default/grub to boot to text. but when I use startx, I get no unity, no compiz, if I use "startx /usr/bin/fluxbox" i get the fluxbox DE. i have Gnome3, KDE and Unity installed also, how to i use them with startx

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Choosing DE with startx

    You need to edit your ~/.xinitrc file. There should be an exec line that specifies which DE to start. Mine looks like this for cinnamon...
    Code:
    #!/bin/sh
    #
    # ~/.xinitrc
    #
    # Executed by startx (run your window manager from here)
    
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
      for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
      done
      unset f
    fi
    
    # exec gnome-session
    # exec startkde
    # exec startxfce4
    # ...or the Window Manager of your choice
    exec gnome-session-cinnamon
    I'm not exactly sure what the correct exec option is for a Unity session but you should be able to Google for it.
    Cheesemill

  3. #3
    Join Date
    Sep 2012
    Beans
    15

    Re: Choosing DE with startx

    found out I didn't have an .xinitrc file. modified to start kde and it works, I think "unity" starts unity, but I haven't tried it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •