how to load byobu automatically when terminal started?

13

1

I'm using Lubuntu 13.10, and I want to load byobu automatically when I open terminal.

I found byobu very flexible and reliable tool and want to use every time when I have to use terminal.

I couldn't find this solution or something similar to this at man pages...

Any suggestions?

nazar_art

Posted 2014-02-04T20:15:18.893

Reputation: 913

Answers

14

I think what you want is to launch the Byobu desktop application. You can find that in the Ubuntu application launcher, by simply typing Byobu. You can lock it to the launcher, and the icon will always stay there, on the left.

Alternatively, most Linux terminals can be set to run a particular command or application at launch.

For instance, in Gnome Terminal, simply click Edit -> Profile Preferences, select the Title and Command tab, check the Run a custom command instead of my shell box, and enter /usr/bin/byobu.

Gnome Terminal preferences

Full disclosure: I am the author and maintainer of Byobu.

Dustin Kirkland

Posted 2014-02-04T20:15:18.893

Reputation: 7 101

It works fine, however is there a way to not have the log message printed every time a terminal is opened ? – Coconop – 2015-10-06T13:01:39.847

Dear Dustin, Is there a way to start the terminal WITHOUT the welcome-message with the annoying "Press <enter> to continue..." message? – ExploWare – 2016-03-07T23:52:28.167

I don't know what enter to continue message you're talking about. – Dustin Kirkland – 2016-03-08T13:54:39.970

I'm using Lubuntu 13.10 - with LXTerminal. It doesn't have this configuration. Does exist some way to achieve this goal on Lubuntu? – nazar_art – 2014-02-05T09:11:43.527

sudo apt-get install gnome-terminal – Dustin Kirkland – 2014-02-05T12:31:24.507

14

You can use the byobu-enable command. See the related man page. To reverse the change, use byobu-disable.

byobu-enable places a line at the end of ~/.profile. This means it only takes effect for login shells, i.e. via SSH or the VTs. If you're using LXTerminal, it may work if you move that line to ~/.bashrc instead.

yjwong

Posted 2014-02-04T20:15:18.893

Reputation: 1 383

You could configure your gnome-terminal to run as a login-shell, and then this solution will work. – jgomo3 – 2017-09-02T17:41:11.320

I had to add the _byobu_sourced=1... line to to my ~/.bashrc – Tek – 2019-11-02T09:46:06.253

1I tried this - but after reopening terminal, I need to type byobu for it starting again – nazar_art – 2014-02-04T20:19:52.150

Revised my answer with more details. – yjwong – 2014-02-04T20:24:39.280

It really uses - LXTerminal. It places - _byobu_sourced=1 . /usr/bin/byobu-launch at the end of .profile. What exactly should enter to turn it? – nazar_art – 2014-02-04T20:31:20.203