Tuesday, March 16, 2010

Byobu - Preseeding Auto-launch


Do you always enable Byobu to auto-launch when you login to your Ubuntu servers?

If so, we have a neat new feature for you... Lucid's Byobu has a debconf question that will allow you to globally enable Byobu's auto-launch for all interactive accounts on the system. It's currently disabled by default. To toggle the value, just use:
sudo dpkg-reconfigure byobu
Each user, though, will still be able to override the global value with their own choice, to auto-launch or not to auto-launch. Users can overide this by either using the F9 Menu, or by touching ~/.byobu/disable-autolaunch.

Also, if you like to use preseed files and automate the installation of your Ubuntu machines, you can preseed this value like so:
d-i pkgsel/include string byobu
byobu byobu/launch-by-default boolean true
There are a couple of minor caveats... Enabling this feature will install a symbolic link to your /etc/profile.d directory. For this to work properly, your shell must support /etc/profile.d and the Z98-byobu.sh link must be the last file sourced by your shell.
/etc/profile.d/Z98-byobu.sh -> /usr/bin/byobu-launch*
Cheers,
:-Dustin

3 comments:

  1. i like your shell windows (status bar). how i do that?

    ReplyDelete
  2. i like your bash window (status bar very cool!). how i do that?

    ReplyDelete
  3. thiagoserra-

    Open a terminal and type "byobu" :-)

    If you're new to byobu, start with F9 -> Help.

    :-Dustin

    ReplyDelete

Please do not use blog comments for support requests! Blog comments do not scale well to this effect.

Instead, please use Launchpad for Bugs and StackExchange for Questions.
* bugs.launchpad.net
* stackexchange.com

Thanks,
:-Dustin