Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: How to create custom X sessions.

  1. #1
    Join Date
    Apr 2005
    Location
    Under the Jolly Roger
    Beans
    571

    How to create custom X sessions.

    I've created a HOWTO for Custom X Sessions on the Wiki. Please post all comments and questions here.
    My sole duty is to my own happiness and well-being. I recognize no other.

  2. #2
    Join Date
    Sep 2005
    Location
    Rio de Janeiro, Brasil
    Beans
    6
    Distro
    Ubuntu Breezy 5.10

    Re: How to create custom X sessions.

    Man, that was awesome! You're good with documentation, are you a teacher? Please keep up the good work. I'll try this guide out when I get tired of watching Naruto. ^__^

    Thank you!

  3. #3
    Join Date
    Apr 2005
    Location
    Under the Jolly Roger
    Beans
    571

    Re: How to create custom X sessions.

    Quote Originally Posted by zipmegabyte
    Man, that was awesome! You're good with documentation, are you a teacher? Please keep up the good work.
    Thank you. I'm not a teacher, though; I'm a programmer by trade who writes as a hobby.
    My sole duty is to my own happiness and well-being. I recognize no other.

  4. #4
    Join Date
    Aug 2005
    Location
    Canada
    Beans
    1,081

    Re: How to create custom X sessions.

    Thanks a lot for for the tutorial!

    You've managed to easily demystify X session scripts for me.


    Just one quick question though (bear in mind that I've just started learning shell scripts, so this may seem rather stupid)...

    Is there a reason for using
    Code:
     #!/usr/bin/env bash
    instead of
    Code:
     #!/bin/bash
    to specify the shell used?
    Last edited by 5-HT; January 8th, 2006 at 03:00 AM.

  5. #5
    Join Date
    Apr 2005
    Location
    Under the Jolly Roger
    Beans
    571

    Re: How to create custom X sessions.

    Quote Originally Posted by 5-HT
    Thanks a lot for for the tutorial!

    You've managed to easily demystify X session scripts for me.
    You're welcome! I'm glad it helped you.

    Quote Originally Posted by 5-HT
    Is there a reason for using
    Code:
     #!/usr/bin/env bash
    instead of
    Code:
     #!/bin/bash
    to specify the shell used?
    It's just a Stormy-ism, really. I remember reading somewhere that while bash isn't always installed in /bin, just about every linux machine out there has /usr/bin/env, which will invoke whatever shell is passed to it as an argument. I've seen other scripts use it as well, and just copied.
    My sole duty is to my own happiness and well-being. I recognize no other.

  6. #6
    Join Date
    Jan 2006
    Beans
    70

    Re: How to create custom X sessions.

    Nice tutorial!

    I'm really ok with the KDE X session in kubuntu.

    I would, however, like to set up my box such that, by default, I boot only to console and then must bring up KDE with the startx command.

    Could you please mention what such a modification would require?

    Thanks...

  7. #7
    Join Date
    Aug 2005
    Location
    Canada
    Beans
    1,081

    Re: How to create custom X sessions.

    Quote Originally Posted by chugru
    Nice tutorial!

    I'm really ok with the KDE X session in kubuntu.

    I would, however, like to set up my box such that, by default, I boot only to console and then must bring up KDE with the startx command.

    Could you please mention what such a modification would require?

    Thanks...
    There seem to be a few ways to do this.

    1.
    One would be to simply uninstall kdm (or gdm, xdm for that matter).

    Uninstalling kdm will also remove the kubuntu-desktop meta-package. Don't worry about that, nothing apart from the meta-package itself will be affected.

    It is strongly recommended to reinstall kubuntu-desktop prior to upgrading, however, to avoid possible problems that may come up during an upgrade.

    Once kdm is removed, you'll boot into console and startx will bring up whatever you have specified in .xinitrc.


    2.
    Another way to stop the gdm daemon from starting automatically on boot is described in this thread.
    http://ubuntuforums.org/showthread.php?t=141071

    You'll have to replace any instance of gdm with kdm.
    Also, I haven't tried this method myself so I wouldn't be any good at troubleshooting or know if this will work for kdm as well (though I believe it should).

    3.
    Other methods involve messing around with runlevels, but I have no experience with such. However, there are some threads around pertaining to the topic.

    Hope that helps

    Quote Originally Posted by Stormy Eyes
    It's just a Stormy-ism, really...
    Thanks for the info (didn't realize you responded until chugru made this post).
    Last edited by 5-HT; March 27th, 2006 at 01:09 AM.

  8. #8
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to create custom X sessions.

    great tutorial. I have only one question.

    I plan on running firefox in X (only firefox) and was wondering how I can kill X (and restart it) when firefox dies.

  9. #9
    Join Date
    Nov 2005
    Location
    Finland
    Beans
    7

    Re: How to create custom X sessions.

    Quote Originally Posted by slavik
    great tutorial. I have only one question.

    I plan on running firefox in X (only firefox) and was wondering how I can kill X (and restart it) when firefox dies.
    Just press CTRL+ALT+DEL and X will restart itself.

  10. #10
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to create custom X sessions.

    No, I want it automatic, because firefox can be killed with ALT+F4

Page 1 of 3 123 LastLast

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
  •