byobu-export and SSH_AUTH_SOCK
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Invalid
|
Low
|
Unassigned |
Bug Description
(first I apologize if this bug is misguided, please dispose of it accordingly. I admit I have not read the man pages in great detail!)
My situation: I want to use byobu-export to create 'nice' screen settings for use on an older system where byobu is not installed.
I also use ssh-agent on that older system. I start a screen and the SSH_AUTH_SOCK is incorrect in the screen children?
I assume this was the value "exported" from my first system?
I plan to comment out the SSH_AGENT_SOCK line in ~/.byobu/profile to avoid this problem.
> # Maintain SSH_AUTH_SOCK link
> setenv SSH_AUTH_SOCK /var/run/
But... I can't help but think someone went to great trouble to put that line there so I must be missing something because I can't see a use for it in my exported config scenario?
Hi Randy, thanks for the report.
First, could you try the latest 3.x byobu tarball from https:/ /launchpad. net/byobu/ +download? These use "./configure --prefix= /path/to/ wherever && make && make install" style installation, and have subsequently deprecated byobu-export.
Secondly (and more to the point of your bug), where is your SSH_AUTH_SOCK located?
The "setenv SSH_AUTH_SOCK /var/run/ screen/ S-$USER/ byobu.ssh- agent" points SSH_AUTH_SOCK to a symlink that byobu tries to maintain against the real socket. You can certainly comment that line out, but it will be up to you (and your shell profile, etc) to maintain the accuracy of that socket across multiple attaches/detaches. That's the reason for the link. It allows Byobu to always look for that socket at the same path, which is a link that can be trivially updated.
I suspect (?) that your problem is that /var/run/screen/* doesn't exist for you on this system where byobu isn't actually installed from the package?