Skip to content
Snippets Groups Projects
Commit d77d749c authored by jkerdreu's avatar jkerdreu
Browse files

- Switch to new Tmux

- Add a new user
- Switch to install.sh script



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3151 b32b6428-25c9-4566-ad07-03861ab6144f
parent 1694b772
Branches
No related tags found
No related merge requests found
FROM python:3-slim
RUN apt update
#RUN apt install -y python3 python3-dev python3-pip subversion libsodium-dev git g++ tmux file
RUN apt install -y subversion libsodium-dev git g++ tmux file fish procps iproute2 curl rlwrap telnet micro
RUN pip install --upgrade pip
RUN svn co https://redmine.telecom-bretagne.eu/svn/xaal/code/Python/branches/0.7 /root/xaal_svn
RUN cd /root/xaal_svn && python3 ./install.py
RUN mkdir /root/.xaal/
RUN echo xAAL|xaal-keygen|grep "key=" > /root/.xaal/xaal.ini
COPY ./tmux.conf /root/.tmux.conf
run chsh root -s /usr/bin/fish
RUN apt install -y subversion libsodium-dev git g++ tmux file fish procps iproute2 curl rlwrap telnet micro sudo
RUN useradd -ms /usr/bin/fish xaal
RUN echo "xaal ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/xaal
USER xaal
WORKDIR /home/xaal
SHELL ["/usr/bin/fish", "-c"]
COPY ./files/install.sh ./install.sh
RUN ./install.sh && rm ./install.sh
COPY ./files/tmux.conf ./.tmux.conf
#run chsh root -s /usr/bin/fish
CMD ["tmux"]
EXPOSE 8080/tcp
......
# General
set -g default-terminal "screen-256color"
set -s escape-time 10
set -g set-titles on
# windows numbers start at 1
set -g base-index 1
set -g renumber-windows on
#setw -g automatic-rename on
set -g message-command-style fg=blue,bg=black
set -g message-style bg=colour39,fg=white,bold
setw -g mode-style bg=colour39,fg=white,bold
#set -g set-titles-string '#(whoami) :: #h :: #(curl ipecho.net/plain;echo)'
set -g status-justify left
set -g status-interval 10
set -g status-position bottom
set -g status-style bg=colour236
set -g status-left " "
set -g status-left-length 40
set -g status-right-length 50
#set -g status-right "#[fg=colour67]#(cat /proc/loadavg|cut -d' ' -f 1) #[fg=white,bg=colour241] #(whoami) #[fg=colour233,bold,bg=colour245] #(hostname) "
set -g status-right "#[fg=colour67]#(cat /proc/loadavg|cut -d' ' -f 1) #[fg=white,bg=colour241] #(whoami) #[fg=colour233,bold,bg=colour245] #(ip addr show dev eth0 | grep "inet[^6]" | awk '{print $2}') "
setw -g window-status-format ' #W:#I '
setw -g window-status-current-format ' #W:#I '
setw -g window-status-current-style fg=white,bold,bg=colour39
setw -g window-status-style fg=colour39,bg=colour236,bold
#setw -g window-status-bell-style
setw -g window-status-activity-style bold,fg=colour39,bg=colour238
setw -g xterm-keys on
# activity
setw -g monitor-activity on
set -g bell-action none
set -g visual-bell off
set -g visual-silence off
set -g pane-border-status top
set -g pane-border-style fg=colour67
set -g pane-active-border-style fg=colour39
#-------
# Mouse
#-------
#bind-key m set-option -g mouse off \; display 'Mouse: OFF'
#bind-key M set-option -g mouse on \; display 'Mouse: ON'
bind-key m set-option -g mouse \; display 'Switching mouse'
#-----------------
# pane navigation
#-----------------
bind -r C-b select-pane -t :.+ # select next pane
bind-key = set-window-option synchronize-panes \; display 'Switching synchronize'
#-------------------
# window navigation
#-------------------
bind -r C-p previous-window # select previous window
bind -r C-n next-window # select next window
bind Tab choose-window # move to last active window
bind -r k kill-pane
bind -r r source ~/.tmux.conf \; display 'Loaded config file'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment