Hi,
I would like to share several datasets via
net/rtorrent from a headless OpenBSD server:
$ uname -a
Code:
OpenBSD lucidrine.bohemia.net 6.0 GENERIC#1 i386
I am trying to devise a setup that will share the datasets whenever the computer is on. rtorrent runs as a regular user with a curses (text/terminal) interface. I interact with this headless machine via ssh and tmux. So, what I would like to do is start a tmux server at boot-time as the regular user and start rtorrent in a pseudo terminal in that tmux session.
This is what I've tried so far (it doesn't work):
/etc/rc.local
Code:
doas -u hanzer tmux new-session rtorrent
/etc/doas.conf
Code:
# Non-exhaustive list of variables needed to
# build release(8) and ports(7)
permit nopass setenv { \
FTPMODE PKG_CACHE PKG_PATH SM_PATH SSH_AUTH_SOCK \
DESTDIR DISTDIR FETCH_CMD FLAVOR GROUP MAKE MAKECONF \
MULTI_PACKAGES NOMAN OKAY_FILES OWNER PKG_DBDIR \
PKG_DESTDIR PKG_TMPDIR PORTSDIR RELEASEDIR SHARED_ONLY \
SUBPACKAGE WRKOBJDIR SUDO_PORT_V1 } :wsrc
permit setenv { -ENV PS1=$DOAS_PS1 SSH_AUTH_SOCK } :wheel
permit nopass keepenv root
/home/hanzer/.tmux.conf
Code:
set -g history-limit 2000
set-option -g status-bg white
set-option -g status-fg black
new-session -n $HOST
set -g status-right '#H #(date +"%Y-%m-%d %a %H:%M")'
rtorrent and pf are configured and working.
My experience with tmux is somewhat superficial. Any ideas?