diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/index.html | 1 | ||||
-rw-r--r-- | tools/network.html | 10 | ||||
-rw-r--r-- | tools/openssh.html | 2 | ||||
-rw-r--r-- | tools/qemu.html | 2 | ||||
-rw-r--r-- | tools/tmux.html | 118 |
5 files changed, 126 insertions, 7 deletions
diff --git a/tools/index.html b/tools/index.html index 2724a6f..dc11f57 100644 --- a/tools/index.html +++ b/tools/index.html @@ -14,6 +14,7 @@ <h2>System Tools</h2> <ul> + <li><a href="tmux.html">Tmux</a></li> <li><a href="tar.html">Tar</a> <ul> <li><a href="tar.html#tarbkup">1. Create Backup</a></li> diff --git a/tools/network.html b/tools/network.html index 2079cca..16549e8 100644 --- a/tools/network.html +++ b/tools/network.html @@ -11,7 +11,7 @@ <h1>Network Tools</h1> <p>This document extend - <a href="../core/network.html">core network</a>, + <a href="../linux/network.html">core network</a>, that cover the most common environments, with virtual networks and bridges.</p> @@ -58,12 +58,12 @@ </pre> <p>Change iptables init script - <a href="../core/conf/rc.d/iptables">/etc/rc.d/iptables</a> + <a href="../linux/conf/rc.d/iptables">/etc/rc.d/iptables</a> and set TYPE to bridge, - <a href="../core/conf/iptables/bridge.v4">/etc/iptables/bridge.v4</a>. + <a href="../linux/conf/iptables/bridge.v4">/etc/iptables/bridge.v4</a>. Now change - <a href="../core/conf/iptables/ipt-conf.sh">ipt-conf.sh</a> - and <a href="../core/conf/iptables/ipt-bridge.sh">ipt-bridge.sh</a> + <a href="../linux/conf/iptables/ipt-conf.sh">ipt-conf.sh</a> + and <a href="../linux/conf/iptables/ipt-bridge.sh">ipt-bridge.sh</a> with your network configuration and run; </p> diff --git a/tools/openssh.html b/tools/openssh.html index c44a934..271d919 100644 --- a/tools/openssh.html +++ b/tools/openssh.html @@ -128,7 +128,7 @@ <h3 id="iptables">1.2. Configure iptables</h3> <p>Iptables;</p> - <p>Example of <a href="../core/scripts/iptables.sh">iptables.sh</a></p> + <p>Example of <a href="../linux/scripts/iptables.sh">iptables.sh</a></p> <pre> $IPT -A INPUT -i ${PUB_IF} -p tcp --dport 2222 --sport 1024:65535 -m state --state ESTABLISHED -j ACCEPT diff --git a/tools/qemu.html b/tools/qemu.html index b8b462b..1ceb969 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -57,7 +57,7 @@ </pre> <p>Information about preparing - <a href="../core/install.html#step2">partitions</a> + <a href="../linux/install.html#step2">partitions</a> and <a href="storage.html">storage</a> administration. You can use image as a normal disk, example how to use parted to create a gpt system table;</p> diff --git a/tools/tmux.html b/tools/tmux.html new file mode 100644 index 0000000..d6bf7a0 --- /dev/null +++ b/tools/tmux.html @@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>2.5.3. Tmux</title> + </head> + + <body> + + <a href="index.html">Core OS Index</a> + <h1 id="tmux">2.5.3. Tmux</h1> + + <p>Install tmux, improves cli work efficiency;</p> + + <pre> + $ sudo prt-get depinst tmux + </pre> + + <p>Create skeleton configuration file for users;</p> + + <pre> + $ sudo vim /etc/skel/.tumx.conf + </pre> + + <pre> + set -g default-terminal "screen-256color" + + set-window-option -g mode-keys vi + + # Vim style + # copy tmux's selection buffer into the primary X selection with PREFIX+CTRL+Y + bind-key u run "tmux save-buffer - | xsel -ib" + # copy primary X selection into tmux's selection buffer with PREFIX+CTRL+P + bind-key e run "xsel -o | tmux load-buffer -" + + bind-key -t vi-copy 'v' begin-selection + bind-key -t vi-copy 'y' copy-selection + + set-option -g set-titles on + set-option -g set-titles-string '#S> #I.#P #W' + + set -g visual-activity on + set -g monitor-activity on + set -g visual-bell on + set -g bell-action any + + ## Join windows: <prefix> s, <prefix> j + bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" + bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" + </pre> + + <p>Copy to your current home and start tmux;</p> + + <pre> + $ cp /etc/skel/.tmux.conf ~/ + $ tmux + </pre> + + <p>Get help;</p> + + <pre> + ctrl + b ? + </pre> + + <pre> + key = bind-key (default ctrl + b) + + Window + key c new window + key " split-window + key n next window + key p previous window + + Panes + key ; last-pane + key space next-layout + key ! break-pane + key { swap pane + key } swap pane + </pre> + + <h2 id="cpypst">2.5.3.1. Copy paste</h2> + + <p>This instructions are valid if tmux.conf file discribed + in this document is used;</p> + + <pre> + 1) enter copy mode using Control+b [ + 2) navigate to beginning of text, you want to select and hit v + 3) move around using arrow keys to select region + 4) when you reach end of region simply hit y to copy the region + 5) now Control+b ] will paste the selection + </pre> + + <p>Paste in X with xsel;</p> + + <pre> + 6) update buffer of xsel using Control+b u + </pre> + + <p>Copy from X with xsel;</p> + + <pre> + 0) update tmux buffer Control+b e + </pre> + + <p>Before pasting on vim, set paste mode and then set nopaste.</p> + + <a href="index.html">Core OS Index</a> + <p> + This is part of the Tribu System Documentation. + Copyright (C) 2020 + Tribu Team. + See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + </body> +</html> |