about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/conf/etc/skel/.gitconfig2
-rw-r--r--tools/conf/etc/skel/.vimrc6
-rw-r--r--tools/conf/etc/skel/.xinitrc16
-rw-r--r--tools/irssi.html42
-rw-r--r--tools/network.html41
-rw-r--r--tools/storage.html66
-rw-r--r--tools/wireless.html10
-rw-r--r--tools/x.html60
8 files changed, 148 insertions, 95 deletions
diff --git a/tools/conf/etc/skel/.gitconfig b/tools/conf/etc/skel/.gitconfig
index f96ecf7..730d8d9 100644
--- a/tools/conf/etc/skel/.gitconfig
+++ b/tools/conf/etc/skel/.gitconfig
@@ -1,8 +1,10 @@
 [core]
 	pager = less -F -X
+	editor = vim
 [diff]
 	tool = vimdiff
 [merge]
 	tool = vimdiff
+	conflictstyle = diff3
 [difftool]
 	prompt = false
diff --git a/tools/conf/etc/skel/.vimrc b/tools/conf/etc/skel/.vimrc
index 2a45faf..0a3656d 100644
--- a/tools/conf/etc/skel/.vimrc
+++ b/tools/conf/etc/skel/.vimrc
@@ -110,7 +110,9 @@ map <F3> :tabprevious<CR>
 map <F4> :tabnext<CR>
 "
 "" Show Line Numbers
-set nu
+"" set nu
+"" Show Relative Line Numbers
+set relativenumber
 "set complete=.,b,u,]
 "set wildmode=longest,list:longest
 "set completeopt=menu,preview
@@ -145,7 +147,7 @@ autocmd BufWinLeave * call clearmatches()
 "" Finally, if you want an indent to correspond to a single tab, you should also use:
 ""set shiftwidth=4
 "" For indents that consist of 4 space characters but are entered with the tab key:
-set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
+set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
 "set list
 "" set past gives problems with tabs
 "" set paste
diff --git a/tools/conf/etc/skel/.xinitrc b/tools/conf/etc/skel/.xinitrc
index 6ccd340..379a315 100644
--- a/tools/conf/etc/skel/.xinitrc
+++ b/tools/conf/etc/skel/.xinitrc
@@ -1,13 +1,13 @@
-## Start the window manager
-
-xrandr -s 1366x768
-#xrandr --dpi 100
-#xrandr --output eDP1 --mode 1366x768
+#xrandr --output eDP1 --mode 1024x768
+#xrandr -s 1366x768
+#xrandr --dpi 73
+#xrandr --dpi 96
 #xgamma -gamma 0.8
-#syndaemon -d
 setxkbmap dvorak
+#syndaemon -d
+#
+## Start the window manager
 
 #exec openbox-session
-#exec dwm
-exec spectrwm
 #exec start-mate
+exec spectrwm
diff --git a/tools/irssi.html b/tools/irssi.html
index d4fcc0d..dbb1372 100644
--- a/tools/irssi.html
+++ b/tools/irssi.html
@@ -1,9 +1,39 @@
+<!DOCTYPE html>
+<html dir="ltr" lang="en">
+    <head>
+        <meta charset='utf-8'>
+        <title>Irssi</title>
+    </head>
+    <body>
 
-   Start up irssi, then:
-   /connect irc.freenode.net
-   /nick MyIRCNick
-   /SERVER ADD -auto -network freenode irc.freenode.net 6667 <password>
+        <a href="index.html">Tools Index</a>
+
+        <h1>Irssi</h1>
+
+        <p>Default configuration file is at /usr/etc/irssi.conf;</p>
+
+        <pre>
+        $ mkdir .irssi
+        $ cp /usr/etc/irssi.conf .irssi/config
+        </pre>
+
+        <p>Start up irssi, then:</p>
+
+        <pre>
+        /connect irc.freenode.net
+        /nick MyIRCNick
+        /SERVER ADD -auto -network freenode irc.freenode.net 6667 &lt;password&gt;
+        /CHANNEL ADD -auto #crux freenode
+        </pre>
 
-      (you may have to shutdown and restart irssi at this point for it to
          recognize the network name "freenode" in the next step)
-         /CHANNEL ADD -auto #crux freenode
+
+        <a href="index.html">Tools Index</a>
+        <p>
+        This is part of the Hive System Documentation.
+        Copyright (C) 2019
+        Hive Team.
+        See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
+        for copying conditions.</p>
+    </body>
+</html>
diff --git a/tools/network.html b/tools/network.html
index 6f9e941..0fad69e 100644
--- a/tools/network.html
+++ b/tools/network.html
@@ -10,24 +10,28 @@
 
         <h1>Network Tools</h1>
 
-        <p>This document and others under tools extend
-        <a href="../core/network.html">core network</a>
-        witch allow to connect to the internet in the most
-        common environments. Follow documents allow to configure
-        tap interfaces for virtual machines, audit network,
-        dns cache and encryption, etc.</p>
-
-        <p>On core is configured a sub-domain from
+        <p>This document extend
+        <a href="../core/network.html">core network</a>,
+        that cover the most common environments, with
+        virtual networks and bridges.</p>
+
+        <p>To configure a sub-domain from
         <a href="http://freedns.afraid.org">afraid.org</a>,
         <a href="https://freedns.afraid.org/dynamic/v2/">generate cron job</a>
         to update ip every 5 minutes, check
-        <a href="https://freedns.afraid.org/dynamic/v2/tips/">about dynamic interface</a>. To run as system cron job add as root and remove path line from example;</p>
+        <a href="https://freedns.afraid.org/dynamic/v2/tips/">about dynamic interface</a>.
+        To run as system cron job add as root and remove
+        path line from example;</p>
+
         <pre>
         # crontab -e
         </pre>
 
-        <p>Example from afraid uses curl and will log output to /tmp/freedns*,
-        change to /var/log/freedns</p>
+        <p>Replace KEY and domain_name with correct one;</p>
+
+        <pre>
+        4,9,14,19,24,29,34,39,44,49,54,59 * * * * sleep 22 ; wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?[KEY]= >> /var/log/freedns_domain_name.log 2>&1 &
+        </pre>
 
         <h2 id="bridge">Bridges</h2>
 
@@ -55,19 +59,24 @@
 
         <p>Change iptables init script
         <a href="../core/conf/rc.d/iptables">/etc/rc.d/iptables</a>
-        to load new rules from
-        <a href="../core/conf/iptables/br-lan.v4">/etc/iptables/br-lan.v4</a>.
-        Now change <a href="../core/scripts/iptables-br.sh">iptables-br.sh</a>
+        and set TYPE to bridge,
+        <a href="../core/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>
         with your network configuration and run;
         </p>
 
         <pre>
-        # bash core/scripts/iptables-br.sh
+        # bash ipt-bridge.sh
         </pre>
 
+        <p>Copy bridge.v4 to /etc/iptables and restart 
+        iptables.</p>
+
         <a href="index.html">Tools Index</a>
         <p>This is part of the Hive System Documentation.
-        Copyright (C) 2018
+        Copyright (C) 2019
         Hive Team.
         See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
         for copying conditions.</p>
diff --git a/tools/storage.html b/tools/storage.html
index 932e724..3a0a064 100644
--- a/tools/storage.html
+++ b/tools/storage.html
@@ -11,16 +11,73 @@
 
         <h2 id="fsck">1. Maintenance</h2>
 
-        <p>SMART provides statistics of disk firmware, this system
-        handle errors has their occur. Badblocks detect bad blocks
-        by writing and reading from disk in a destructive test.
-        Example of how to view SMART statistics of a disk;</p>
+        <p>SMART provides statistics of disk firmware,
+        this system handle errors has their occur. Badblocks        are detected by writing and reading from disk in
+        a destructive test. Example of how to view SMART
+        statistics of a disk;</p>
 
         <pre>
         # smartctl -t long /dev/sdb1
         # smartctl -a /dev/sdb1 | less
         </pre>
 
+        <p>Mechanical hard drives spindown disks
+        and put heads in hold position to save energy
+        and protect the disk. This spindow spinup
+        can shorter the life expectancy of the hard
+        drive. Relevant output from hdparm;</p>
+
+        <pre>
+        # hdparm -I /dev/sda | grep "Advanced power management level"
+        # hdparm -I /dev/sda | grep "Recommended acoustic management value"
+        </pre>
+
+
+        <p>Settings with hdparm [options] [device];</p>
+
+        <dl>
+            <dt>-B</dt>
+
+            <dd>Set the Advanced Power Management feature.
+            Possible values are between 1 and 255, low
+            values mean more aggressive power management
+            and higher values mean better performance.
+            Values from 1 to 127 permit spin-down, whereas
+            values from 128 to 254 do not. A value of 255
+            completely disables the feature.</dd>
+
+            <dt>-S</dt>
+
+            <dd>Set the standby (spindown) timeout for
+            the drive. The timeout specifies how long to
+            wait in idle (with no disk activity) before
+            turning off the motor to save power. The value
+            of 0 disables spindown, the values from 1 to
+            240 specify multiples of 5 seconds and values
+            from 241 to 251 specify multiples of 30
+            minutes.</dd>
+
+            <dt>-M</dt>
+
+            <dd>Set the Automatic Acoustic Management
+            feature. Most modern hard disk drives have the
+            ability to speed down the head movements to
+            reduce their noise output. The possible value
+            depends on the disk, some disks may not support
+            this feature.</dd>
+        </dl>
+
+        <pre>
+        # hdparm -S 0 /dev/sda
+        # hdparm -B 255 /dev/sda
+        </pre>
+
+        <p>Set persistent values using udev, edit /etc/udev/rules.d/69-hdparm.rules;</p>
+
+        <pre>
+        ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN=="/usr/bin/hdparm -B 255 -S 0 /dev/sda"
+        </pre>
+
         <p>Search for bad blocks using
         <a href="https://wiki.archlinux.org/index.php/Badblocks">non destructive test;</a></p>
 
@@ -28,6 +85,7 @@
         # badblocks -nsv /dev/sdb1
         </pre>
 
+
         <h2 id="mv">2. Moving data</h2>
 
         <p>Temp partition with 20M-50M;</p>
diff --git a/tools/wireless.html b/tools/wireless.html
index 7481069..f4eeddb 100644
--- a/tools/wireless.html
+++ b/tools/wireless.html
@@ -5,7 +5,15 @@
     </head>
     <body>
         <h1>Wireless</h1>
-        <h4>Recover Password</h4>
+
+        <h2>Manual configuration</h2>
+
+        <pre>
+        # iwlist wlp2s0 scan
+        # iwconfig wlp2s0 essid name_of_network
+        </pre>
+
+        <h4>Recover Password WPS</h4>
 
         <p>Tested on debian system only.</p>
 
diff --git a/tools/x.html b/tools/x.html
index c693062..3efaf7a 100644
--- a/tools/x.html
+++ b/tools/x.html
@@ -17,34 +17,7 @@
         <h3>Xorg</h3>
 
         <pre>
-        $ sudo prt-get depinst xorg-server \
-             xorg-xinit \
-             xorg-xrdb \
-             xorg-xdpyinfo \
-             xorg-xauth \
-             xorg-xmodmap \
-             xorg-xrandr \
-             xorg-xgamma \
-             xorg-xf86-input-evdev \
-             xorg-xf86-input-synaptics \
-             xsel \
-             xkeyboard-config
-        </pre>
-
-        <h3>Fonts</h3>
-
-        <pre>
-        $ sudo prt-get depinst xorg-font-util \
-             xorg-font-alias \
-             xorg-font-dejavu-ttf \
-             xorg-font-cursor-misc \
-             xorg-font-misc-misc \
-             console-font-terminus \
-             xorg-font-terminus \
-             xorg-font-mutt-misc
-
-        $ prt-get search xorg-font-bitstream | xargs sudo prt-get depinst
-        $ prt-get search xorg-font-bh | xargs sudo prt-get depinst
+        $ prt-get depinst meta-desktop
         </pre>
 
 
@@ -53,35 +26,6 @@
         $ prt-get depinst otf-sourcecode
         </pre>
 
-        <h3>Utilities</h3>
-
-        <pre>
-        $ sudo prt-get depinst \
-            alsa-utils \
-            libdrm \
-            mesa3d \
-            ffmpeg \
-            gstreamer \
-            gstreamer-vaapi \
-            gst-plugins-base \
-            gst-plugins-good \
-            gst-plugins-bad \
-            gst-plugins-ugly \
-            cmus \
-            dmenu \
-            st \
-            gparted \
-            gimp \
-            libreoffice \
-            ca-certificates \
-	    linux-pam \
-	    gstreamer \
-	    libgd \
-            icu \
-	    syndaemon \
-	    firefox
-        </pre>
-
         <h3>Window Managers</h3>
 
 	<pre>
@@ -92,7 +36,7 @@
 	 	mate
 	</pre>
 
-        <h2>Configure</h2>
+        <h2 id="config">Configure</h2>
 
         <h3>Local xinitrc</h3>