Public bug reported:

Binary package hint: byobu

I really don't speak English, so I'm so sorry.
At the end of this script i put the same on Spanish my language native.

First I'm using Ubuntu 10.4 and I believe that something wrong happen
whit “byobu”

lsb_release -rd
Description:    Ubuntu 10.04 LTS
Release:        10.04

The technicals specifications are:
apport-cli byobu:

ProblemType: Bug
Architecture: i386
Binaries:
 -rwxr-xr-x 1 root root   2207 2010-03-31 14:27 /usr/bin/byobu*
 -rwxr-xr-x 1 root root  17103 2010-03-16 22:17 /usr/bin/byobu-config*
 -rwxr-xr-x 1 root root   3612 2010-03-10 18:26 /usr/bin/byobu-export*
 -rwxr-xr-x 1 root root   4974 2010-03-29 23:51 /usr/bin/byobu-janitor*
 -rwxr-xr-x 1 root root    840 2010-03-03 01:14 /usr/bin/byobu-launch*
 -rwxr-xr-x 1 root root    842 2010-03-03 01:14 /usr/bin/byobu-launcher*
 -rwxr-xr-x 1 root root   1623 2010-03-03 01:14 /usr/bin/byobu-launcher-install*
 -rwxr-xr-x 1 root root   1161 2010-03-03 01:14 
/usr/bin/byobu-launcher-uninstall*
 -rwxr-xr-x 1 root root   1619 2010-03-10 18:37 
/usr/bin/byobu-reconnect-sockets*
 -rwxr-xr-x 1 root root   4728 2010-03-09 17:04 /usr/bin/byobu-select-profile*
 -rwxr-xr-x 1 root root   1821 2010-03-31 14:11 /usr/bin/byobu-select-session*
 -rwxr-xr-x 1 root root   2620 2010-03-10 18:30 /usr/bin/byobu-status*
 -rwxr-xr-x 1 root root   1054 2010-03-03 01:14 /usr/bin/byobu-status-detail*
 -rwxr-sr-x 1 root utmp 340604 2009-11-10 12:06 /usr/bin/screen*
 -rwxr-xr-x 1 root root   9648 2010-03-12 01:05 /usr/bin/screendump*
 lrwxrwxrwx 1 root root     23 2010-05-30 14:03 /usr/bin/screen-launcher -> 
/usr/bin/byobu-launcher*
 lrwxrwxrwx 1 root root     21 2010-05-30 14:03 /usr/bin/screen-profiles-status 
-> /usr/bin/byobu-status*
Date: Thu Jun 17 14:25:40 2010
Dependencies:
 coreutils 7.4-2ubuntu2
 debconf 1.5.28ubuntu4
 debconf-i18n 1.5.28ubuntu4
 dpkg 1.15.5.6ubuntu4
 findutils 4.4.2-1ubuntu1
 gcc-4.4-base 4.4.3-4ubuntu5
 gettext-base 0.17-8ubuntu3
 libacl1 2.2.49-2
 libattr1 1:2.4.44-1
 libbz2-1.0 1.0.5-4
 libc-bin 2.11.1-0ubuntu7.1
 libc6 2.11.1-0ubuntu7.1
 libdb4.8 4.8.24-1ubuntu1
 libgcc1 1:4.4.3-4ubuntu5
 liblocale-gettext-perl 1.05-6
 libncurses5 5.7+20090803-2ubuntu3
 libncursesw5 5.7+20090803-2ubuntu3
 libnewt0.52 0.52.10-5ubuntu1
 libpam0g 1.1.1-2ubuntu2
 libreadline6 6.1-1
 libselinux1 2.0.89-4
 libslang2 2.2.2-2ubuntu1
 libsqlite3-0 3.6.22-1
 libssl0.9.8 0.9.8k-7ubuntu8
 libstdc++6 4.4.3-4ubuntu5
 libtext-charwidth-perl 0.04-6
 libtext-iconv-perl 1.7-2
 libtext-wrapi18n-perl 0.06-7
 lzma 4.43-14ubuntu2
 mime-support 3.48-1ubuntu1
 perl-base 5.10.1-8ubuntu2
 python 2.6.5-0ubuntu1
 python-central 0.6.15ubuntu1
 python-minimal 2.6.5-0ubuntu1
 python-newt 0.52.10-5ubuntu1
 python2.6 2.6.5-1ubuntu6
 python2.6-minimal 2.6.5-1ubuntu6
 readline-common 6.1-1
 screen 4.0.3-14ubuntu1
 tzdata 2010j-0ubuntu0.10.04
 zlib1g 1:1.2.3.3.dfsg-15ubuntu1
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
Package: byobu 2.68-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=es_MX.utf8
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
RelatedPackageVersions:
 byobu 2.68-0ubuntu1
 screentest N/A
 screenruler N/A
 screenlets-doc N/A
 screen 4.0.3-14ubuntu1
 screensaver-default-images 0.2-1
 screen-profiles N/A
 screenie-qt N/A
 screenie N/A
 screenlets N/A
 screenbin N/A
 screen-resolution-extra 0.13

ScreenRC:
SourcePackage: byobu
Tags: lucid
Uname: Linux 2.6.32-22-generic i686

What I expect to happen:
Well in my case, when I run byobu on any terminal (gnome-terminal, Konsole, 
Xterm) or tty (tty1-tty6), and try to run another instance of byobu on any 
other terminal. I always get a new instance.
Whit only one screen open. That happened on Ubuntu 9.10.

What happened instead
In my case, if I open one instance of byobu on any of this (gnome-terminal, 
Konsole, Xterm, tty).
And later I open a new instance, I get the same screens that I have open on the 
previous byobu.  

Is something similar to run byobu-select-session. But I don't do that.
And never show me any dialog or menu for the selection of a new instance of 
byobu.  

MORE DETAILS:
I have Ubuntu 10.4 installed on 20 PC, Compac whit processor AMD 64 whit 2GB of 
RAM (Sorry but on this moment I don't have more information; I don't remember; 
This are computers of my university)
Also I have the same distro (Ubuntu 10.4) on my laptop Dell INSPIRON E1505, 
processor Intel Centrino (Genuine Intel T1300 @ 1.66GHz), 1GB of RAM.

In fact I see the same problem on a distro Mint (The actual, whit base
on Ubuntu 10.4) because a friend have installed this on her laptop.

**************************************
What I do:
**************************************

I open my terminal. Alt+F2, write gnome-terminal, xterm, konsole or
write bash and mark run on terminal. The same happens if I use
Applications > Accessories  > Terminal (Sorry in my language say:
Aplicaciones > Accesorios > Terminal).

In this terminal I write “byo” and type “Tab” for the auto-completion.
Then the terminal show me the next message:

+++++++++++++++++++++++++++++++++++++++++
Linux «Mi lap» 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 
i686 GNU/Linux 
Ubuntu 10.04 LTS 

Welcome to Ubuntu! 
 * Documentation:  https://help.ubuntu.com/ 

0 packages can be updated. 
0 updates are security updates. 

«My use...@«my Lap»:~$  
+++++++++++++++++++++++++++++++++++++++++

If I try to run a new instance, I get the same.
That is, if I open a new terminal (gnome-terminal, Konsole, Xterm or tty) and 
run the comand byobu, I get all the screens that I have ruing on the previous 
byobu.

Example:
if I have a gnome-terminal ruing a instance of byobu, whit three screens ($0 
finch, $1 links, $2 bash).
And I open a new instance (runing byobu on the new Terminal). I get the three 
screens ($0 finch, $1 links, $2 bash).

The label change from: “0 $ «label»”  to: “0 * $  «label»”

If I close this byobu, the tow instances finish.
That is: on any of the tow byobu, I type “Ctrl+A, : and write the command quit 
(intro)” the two instances of byobu finish.

Something particular happen when I create a new screen. If this screen
is one of the originals (It was open whit byobu). The two instances
clone the new screen.

Example:
I have a byobu whit one screen.
I open a new terminal and run the program byobu. Of curse this open the same 
socket.

In this moment, the two instances have one screen whit lable “$ * 0”

If I create a new screen, the two byobu show a new screen whit the label
“$ 1”

If I create a new screen, when I was on the screen whit the label “$ * 0”, that 
new screen appear on the two instances of byobu.
But if I create a new screen, while I have the focus over the screen labeled 
whit “$ 1” this new screen only appear on this instance of byobu.       
If I return to the screen whit label “$ 0” and create a new screen, it again 
appear on the two instances of byobu.

I don't believe “the problem are on byobu”. Because I change recently the file 
“~.screenrc” and copy the profile of byobu. And this works grate.
When I run screen, and later I run byobu. This show me a menu ask me if I 
desire create a new or open previous.

The script is the next (I get that from: ~.byobu/profile):

#startup_message off
#caption always '%{rw} * %H * |$LOGNAME| %{bw}%c%D | % {-}% 
-LW%{rw}%50>%{rW}%n%f* %t %{-}%+LW%<'

#caption always '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f
%t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d
%c ]%{W}'

#caption always '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f
%t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d
%c ]%{W}'

#windowlist -m
#windowlist string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d 
%M %Y %c:%s%{-}' 

#caption always '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{=
kG}%-=%D %d %M %Y %c:%s%{-}'

# Window tabs, second to last line
#caption always "%12`%?%-Lw%50L>%?%{=r}%n*%f %t%?(%u)%?%{-}%12`%?%+Lw%?%11` 
%=%12`%110`%109`%122`%111`%10`%<"

# Status string, last line
#hardstatus string '%99`%{-}%{=r}%12` %100`%112`%= 
%130`%102`%101`%129`%131`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%132`%120`%121`'


###
###############################################################################
#    Screen common profile
#      This GNU Screen configuration profile is intended to roughly
#      approximate a graphical desktop, inspired by the Ubuntu Gnome Desktop.
#
#    Copyright (C) 2008 Canonical Ltd.
#
#    Authors: Dustin Kirkland <kirkl...@canonical.com>
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, version 3 of the License.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
###############################################################################

# Now, let's override with our customizations
startup_message off
vbell off
msgwait 1
defutf8 on

# Define status commands
#   Use prime number intervals, to decrease collisions, which
#   yields some less expensive status updates.
#   ~86000 ~1 day
#   ~600   ~10 minutes
#   ~180   ~3 minutes
#   ~60    ~1 minute
backtick 10     9999999 9999999         byobu-janitor
backtick 11     9999999 9999999         printf "\005-1="
backtick 12     9999999 9999999         byobu-status color
backtick 99     9999999 9999999         byobu-status logo
backtick 100    599     599             byobu-status release
backtick 101    7       7               byobu-status updates_available
backtick 102    5       5               byobu-status reboot_required
backtick 103    2       2               byobu-status cpu_freq
backtick 104    43      43              byobu-status cpu_count
backtick 105    47      47              byobu-status mem_available
backtick 106    2       2               byobu-status load_average
backtick 107    13      13              byobu-status mem_used
backtick 108    601     601             byobu-status ec2_cost
backtick 109    607     607             byobu-status hostname
backtick 110    86029   86029           byobu-status whoami
backtick 111    9999999 9999999         byobu-status menu
backtick 112    9999999 9999999         byobu-status arch
backtick 113    61      61              byobu-status battery
backtick 114    11      11              byobu-status users
backtick 115    29      29              byobu-status uptime
backtick 116    7       7               byobu-status processes
backtick 117    3       3               byobu-status network
backtick 118    9999999 9999999         true
backtick 119    17      17              byobu-status wifi_quality
backtick 120    9999999 9999999         byobu-status date
backtick 121    9999999 9999999         byobu-status time
backtick 122    127     127             byobu-status ip_address
backtick 123    13      13              byobu-status disk
backtick 124    9999999 9999999         true
backtick 125    19      19              byobu-status cpu_temp
backtick 126    9999999 9999999         true
backtick 127    5       5               byobu-status mail
backtick 128    23      23              byobu-status fan_speed
backtick 129    67      67              byobu-status apport
backtick 130    5       5               byobu-status custom
backtick 131    53      53              byobu-status services
backtick 132    11      11              byobu-status time_utc

hardstatus alwayslastline

# Turns off alternate screen switching in xterms,
# so that text in screen will go into the xterm's scrollback buffer:
termcapinfo xterm* ti@:te@
altscreen on

# Enable 256 color terminal
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"

# Log 10000 lines
defscrollback 10000

# Monitor windows
defmonitor on
activity ""

# Maintain SSH_AUTH_SOCK link
setenv SSH_AUTH_SOCK /var/run/screen/S-$USER/byobu.ssh-agent

source $HOME/.byobu/keybindings

# Window tabs, second to last line
caption always "%12`%?%-Lw%50L>%?%{=r}%n*%f %t%?(%u)%?%{-}%12`%?%+Lw%?%11` 
%=%12`%110`%109`%122`%111`%10`%<"

# Status string, last line
hardstatus string '%99`%{-}%{=r}%12` %100`%112`%= 
%130`%102`%101`%129`%131`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%132`%120`%121`'

# NOTE: Older version of screen have an arbitrary limit of only being able
# to change colors 16 times in this 'hardstatus string'.
# Ubuntu (fixed in Jaunty):
#  * https://bugs.launchpad.net/bugs/315871
# Upstream:
#  * http://savannah.gnu.org/bugs/?22146   


Primero que nada me disculpo por mi poca habilidad en el idioma inglés.
Y probablemente también en la redacción y en los errores.

La situación es la siguiente: Al correr byobu en dos instancias esta por 
default reproduce la anterior.
De manera similar a correr byobu-select-session.

Este detalle me aparece en cada una de las  instalaciones que he realizado de 
Ubuntu 10.4. (No me pasaba en la anterior Ubuntu 9.10).
Lo he instalado en 21 máquinas 20 son Compac (Con Hardware similar); en este 
momento no tengo las características de las Compac solo recuerdo que tienen 
procesador AMD 64 y 2GB de RAM.
Y me pasa también en la mía una Dell INSPIRON E1505, procesador Intel Centrino 
(Genuine Intel T1300 @ 1.66GHz), 1GB en RAM.

De hecho me percate del detalle al día siguiente del que fue liberado Ubuntu 
10.4, pues lo tenia que instalar en estas 20 máquinas.
Pero quise esperar para mandar el reporte en lo que encontraba algún detalle, 
no sé, algo cómo: "byobu arrancara sesiones ya abiertas por default a menos que 
pase el argumento '-X'"
Pero no he encontrado nada similar, ni en bugs, ni en foros.
Este detalle también lo vi en un Mint, la versión actual basada en Ubuntu 10.4. 
Pues la instalo un conocido y le pedí permiso de ver si pasaba lo mismo en su 
distro (Tampoco tengo las características de esta laptop en este momento).

Lo que pasa es lo siguiente:
Abro la terminal gnome (Aplicaciones>Accesorios>Terminal, Alt+F2 ejecutar 
gnome-termminal) corro byobu.
Genero algunas screens en esta terminal. Por ejemplo una para bash, dselect, 
man, finch.
Y al pasarme a otra instancia de gnome-terminal (Alt+F2 ejecutar bash,  correr 
en terminal) y abrir byobu, sin más me abre exactamente las mismas ventanas.

Suponga que en gnome-terminal instancia uno (GT1) tengo finch en el
screen 1 (0 $), y en el screen 2 tengo man man (1 $), luego tengo un
tercer screen para bash (2 $).

Abro otra terminal (gnome-terminal) y corro byobu. Da la casualidad que no me 
presenta un menú de abrir sesión anterior o algo similar, y me vuelve a abrir 
exactamente lo mismo que tengo en GT1. En otras palabras en esta  otra 
instancia de gnome-terminal con otro byobu me abre:
finch en el screen 1 (0 $),en el screen 2  man man (1 $), y en el tercer screen 
para bash (2 $).

Por supuesto si escribo algo en GT2 en el bayobu de esta, también se
refleja en GT1. Por ejemplo si escribo ls en el screen 2 (El bash) en
GT2, aparece también en GT1.

Un detalle particular en este punto, es que al crear otro screen (Ctrl+A, C [^A 
C] ) se crea este screen en ambas instancias de byobu (GT1 y GT2).
Pero si creo otro screen, este ya no se crea en el otro.
Esto es, si creo un screen en GT1 aparece en el acto en GT2.
Y si creo otro screen en GT1 ya no aparece en GT2.
Esto pasa también si se crea el nuevo screen en GT2.
En otras palabras si GT1 tiene 'n' screens abiertos y se crea otra instancia de 
byobu en otra gnome-terminal esta imitara 'n+1' screens.

Todo parece indicar que si se crea un nuevo screen con los que se
enlazan al inicio, este nuevo screen será creado en las dos instancias.

Por ejemplo:
Se tiene una gnome-terminal, se abre byobu, se crea un screen. Se abre otra 
gnome-terminal se abre otro byobu; este por default clonara el screen del byobu 
encontrado en GT1, y se crea otro screen (^A c), este será creado en los dos. 
Si estoy en el screen 1 y doy crear un nuevo screen este no se reproduce en los 
dos.
Pero si estoy en el screen 0 (Con el que estaban enlazados originalmente ambos 
byobu), y creo 'n' screens estos se clonaran en ambas instancias.

Si cierro las aplicaciones se cierra en las dos instancias de byobu. Si estas 
se han enlazado.
Suponga que pulso q en el finch ubicado en el GT1, en el acto se sierra en GT2.
Y si mato el screen (^A k, yes). Se cierra en ambos.

De manera similar, si cierro este segundo byobu (^A :, comando quit) se
cierran los dos byobus.

En los últimos días, he cambiado la configuración de scrren. Copie el script de 
byobu en ~.screenrc.
Y jala de maravilla, de hecho si corro byobu después de screen, este me 
presenta un menú preguntándome si deseo crear uno nuevo o abrir alguna de las 
sesiones ya abiertas.

De manera que mi conclusión es que byobu no esta fallando.
Pero hay algo que evita que muestre este menú.

** Affects: byobu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
byobu on Ubuntu 10.4 don't show menu for select a new instance
https://bugs.launchpad.net/bugs/595715
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to