GermanMeat Posted May 22, 2014 Posted May 22, 2014 this is what I have in one of the dip banks 1-0-1 and switched; sleep 5; tmux new -s new-Win What Im expecting, is after it boots +5 , have a tmux session running called new-Win tmux doesn't show any other sessions running when automating it via dip switch. It works if I manually log in as root and run mux new -s new-Win Quote
Darren Kitchen Posted May 23, 2014 Posted May 23, 2014 I was able to reproduce your issue. When issuing tmux list-sessions I find tmux not running. root@Pineapple:~# tmux list-sessions failed to connect to server: Connection refused So I tried again with this script #!/bin/bash sleep 5; tmux new -s new-Win And boot mode string: touch /tmp/started-tmux; /root/start-tmux.sh And this is what I get root@Pineapple:~# tmux list-sessions failed to connect to server: Connection refused root@Pineapple:~# ls /tmp/started* /tmp/started-tmux root@Pineapple:~# So the script is running and the problem seems to be with tmux. I'm new to this program (I usually use screen) so I'm not aware of anything that needs to be done off the top of my head. Just to make sure it's running as root I installed the whoami coreutil root@Pineapple:~# opkg install coreutils-whoami Installing coreutils-whoami (8.16-1) to root... Downloading http://cloud.wifipineapple.com/mk5/packages/coreutils-whoami_8.16-1_ar71xx.ipk. Configuring coreutils-whoami. root@Pineapple:~# whoami root And added whoami > /tmp/whoami as a boot mode and rebooted with the DIPS switched. Here are the results: root@Pineapple:~# cat /tmp/whoami root So the boot mode scripts are being kicked off by root. Hope this helps! Quote
GermanMeat Posted May 23, 2014 Author Posted May 23, 2014 Heya Darren, Thanks for verifying. I appreciate it, so im not going in circles ;-) That sux though, tmux is more advanced than screen. Installed screen and will learn to use it instead... Quote
Darren Kitchen Posted May 23, 2014 Posted May 23, 2014 I'm sure there's a way to get tmux going - I just don't know what that may be. After playing with it I see it might be more intuitive than screen if you're new to terminal multiplexers. Quote
GermanMeat Posted May 23, 2014 Author Posted May 23, 2014 (edited) Actually I checked and noticed that the OPKG library has an older version of it. It currently is at 1.9a , might have been fixed. http://tmux.sourceforge.net/ Package: tmux Version: 1.6-2 Depends: libc, libncurses, libevent2, libpthread, librt Provides: Status: install user installed Section: utils Architecture: ar71xx Maintainer: OpenWrt Developers Team MD5Sum: 841e68ebadeb377f8026d8238d5c811b Size: 122873 Filename: tmux_1.6-2_ar71xx.ipk Source: feeds/packages/utils/tmux Description: tmux is a modern, BSD-licensed alternative to GNU screen. Installed-Time: 1400234318 Edited May 23, 2014 by WilsonB Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.