G5H9U

      Once Feynman* found errors in one of the older articles
      (not his own). This led to many other incorrect entries,
      refers to the initially incorrect data.

      "Since then, I do not pay attention to what experts say.
       I do calculate everything myself" 
      -- he remarked on this occasion

        https://lenta.ru/articles/2016/04/25/youngcentre/

      *) http://www.nobelprize.org/nobel_prizes/physics
              /laureates/1965/feynman-facts.html

BUILDING XENIAL XERUS VIRTUALBOX APPLIANCE
------------------------------------------

0. Options for new Virtual Machine
   -------------------------------

  General:  Basic:       Name: Hamster-mini
                         Type: Linux
                         Version: Ubuntu (64 bit)
            Advanced:    Shared Clipboard: Bidirectional

  System:   Base Memory: 1536 MB

  Storage:  XX-8GB.vhd

  Network:  Adapter 1. NAT
            Port Forwarding: Rule 1
            Host IP: 127.0.0.1 Host Port: 22 Guest IP: 10.0.2.15 Guest Port: 22

1. Install Xenial Xerus 16.04 from netboot mini.iso with minimal options
   ---------------------------------------------------------------------

  wget -c http://archive.ubuntu.com/ubuntu/dists/xenial/main
               /installer-amd64/current/images/netboot/mini.iso

2. Installing SSH support
   ----------------------

  $ sudo apt install openssh-server

3. Login over SSH into virtual machine
   -----------------------------------

Prerequisites

  sudo apt install gcc automake make wget mingetty adduser
                   build-essential libtool flex bison gdb git
                   elinks vim mc
                   
  sudo apt install xserver-xorg xfonts-base xinit xterm openbox
                   obconf feh fbpanel rox-filer
                   gnome-icon-theme firefox leafpad
                   xfonts-terminus
                   
  cat /etc/default/grub | grep "# <<<"
    #GRUB_HIDDEN_TIMEOUT=0                         # <<<
    #GRUB_HIDDEN_TIMEOUT_QUIET=true                # <<<
    GRUB_CMDLINE_LINUX_DEFAULT="" # "splash quiet" # <<<
    GRUB_TERMINAL=console                          # <<<

  sudo update-grub
  
Install guest additions. Insert disk.

  sudo -s
  mkdir /mnt/cdrom
  mount -r /dev/cdrom /mnt/cdrom
  cd /mnt/cdrom
  ./VBoxLinuxAdditions.run
  
Startx from the main console (not over SSH). Run xterminal.

  fbpanel
  
Exit from openbox now

  cd ~/.config/
  mkdir openbox
  cd openbox/
  
  cat autostart.sh
    feh --bg-scale /home/virtu/.config/openbox/xx-wallpaper.jpg &
    xrdb -merge .Xdefaults
    xterm &
    fbpanel &
    
  cat .Xdefaults
    xterm*VT100.translations: #override <Btn1Up>: select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0)
    XTerm*background:     black
    XTerm*foreground:     green
    XTerm*faceName:       terminus
    XTerm*faceSize:       16
    XTerm*geometry:       90x32
    XTerm*rightScrollBar: true
    XTerm*ScrollBar:      true

  cat /etc/sudoers | grep ^%
    %admin ALL=(ALL) NOPASSWD:ALL
    %sudo  ALL=(ALL) NOPASSWD:ALL

  mkdir /mnt/vbox
  mount -t vboxsf tmp /mnt/vbox

  vi .config/fbpanel/default

  ...
  Plugin {
      type = launchbar
      config {
          button {
              icon = file-manager
              tooltip = File Manager
              action = rox
          }
          button {
              icon = terminal
              tooltip = Terminal
              action = xterm # x-terminal-emulator
          }
          button {
              image = /opt/google/chrome/product_logo_22.png
              tooltip = Web Browser
              action = x-www-browser
          }
          button {
              image = /opt/png/kxus.png
              tooltip = US keyboard
              action = kxus
          }
          button {
              image = /opt/png/kxru.png
              tooltip = RU keyboard
              action = kxru
          }
          button {
              image = /opt/png/kxee.png
              tooltip = EE keyboard
              action = kxee
          }
      }
  }
  
  ...

  #plugin {
  #    type = volume
  #}

  #plugin {
  #    type = battery
  #}

  ...

4. Adding user scripts
   -------------------

  $ ls -l /usr/local/bin
  total 52
  -rwxr-xr-x 1 root root  68 Oct 24 20:45 estify
  -rwxr-xr-x 1 root root 320 Oct 24 20:45 html2text
  -rwxr-xr-x 1 root root  18 Oct 24 20:45 kee
  -rwxr-xr-x 1 root root  18 Oct 24 20:45 kru
  -rwxr-xr-x 1 root root  18 Oct 24 20:45 kus
  -rwxr-xr-x 1 root root  14 Oct 24 20:45 kxee
  -rwxr-xr-x 1 root root  14 Oct 24 20:45 kxru
  -rwxr-xr-x 1 root root  14 Oct 24 20:45 kxus
  -rwx------ 1 root root 235 Oct 24 20:45 prepare
  -rwxr-xr-x 1 root root  70 Oct 24 20:45 rusify
  -rwxr-xr-x 1 root root  68 Oct 24 20:45 usify
  -rwxr-xr-x 1 root root  18 Oct 24 20:45 ксша
  -rwxr-xr-x 1 root root  14 Oct 24 20:45 кхсша

  $ for i in /usr/local/bin/*; do ls $i; cat $i; done
  
    /usr/local/bin/estify
    #!/bin/bash

    sudo update-locale LANG=et_EE.UTF-8 LANGUAGE=et_EE:et

    /usr/local/bin/html2text
    #!/usr/bin/python
    # EASY-INSTALL-ENTRY-SCRIPT: 'html2text==2014.7.3','console_scripts','html2text'
    __requires__ = 'html2text==2014.7.3'
    import sys
    from pkg_resources import load_entry_point

    if __name__ == '__main__':
        sys.exit(
            load_entry_point('html2text==2014.7.3', 'console_scripts', 'html2text')()
        )
    /usr/local/bin/kee
    sudo loadkeys ee

    /usr/local/bin/kru
    sudo loadkeys ru

    /usr/local/bin/kus
    sudo loadkeys us

    /usr/local/bin/kxee
    setxkbmap ee

    /usr/local/bin/kxru
    setxkbmap ru

    /usr/local/bin/kxus
    setxkbmap us

    /usr/local/bin/rusify
    #!/bin/bash

    sudo update-locale LANG=ru_RU.UTF-8 LANGUAGE="ru_RU:ru"

    /usr/local/bin/usify
    #!/bin/bash

    sudo update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en

    /usr/local/bin/ксша
    sudo loadkeys us

    /usr/local/bin/кхсша
    setxkbmap us

5. Adding drawing support
   ----------------------

  apt install xpaint netpbm imagemagick

6. Adding user icons (from Trusty on sdb)
   --------------------------------------

  ls -l /opt/png
  total 16
  -rw-r--r-- 1 root root 230 Oct 24 20:43 kxee.png
  -rw-r--r-- 1 root root 164 Oct 24 20:43 kxru.png
  -rw-r--r-- 1 root root 243 Oct 24 20:43 kxus.png
  -rw-r--r-- 1 root root 267 Oct 24 20:43 w.png

7. Installing Google Chrome
   ------------------------

go to https://www.google.com/intl/en-US/chrome/browser/

  cd Downloads/
  apt install gconf-service libgconf-2-4 libnspr4 libnss3 libpango1.0-0 libxss1 libappindicator1 libindicator7 gconf2-common fonts-liberation gconf-service-backend libnss3-nssdb libpangox-1.0-0
  dpkg -i google-chrome-stable_current_amd64.deb

8. Cleaning up
   -----------

  apt clean
  dd if=/dev/zero of=biig; rm -f biig

Host level 7-zip with ultra compression to SFX file:

  Xenial-8GB-G5H.exe
  md5sum Xenial-8GB-G5H.exe > Xenial-8GB-G5H.exe.md5sum

9. Patch
   -----
   
  Replace x-terminal-emulator with xterm
  in ~/.config/fbpanel/default
  in /etc/xdg/openbox/menu.xml

A. Comfort
   -------
   
  apt install apt-file
  apt-file update
  apt-get install gedit gksu dbus-x11 gnome-icon-theme-symbolic \
                  gir1.2-gtksource-3.0

------------------------------------------------------------------------

ToDo

2. Cyrillic fonts in xterm.

  sudo locale-gen ru_RU.UTF-8
  sudo apt-get install language-pack-ru
  sudo dpkg-reconfigure locales
  sudo update-locale LANG=ru_RU.UTF-8 LANGUAGE="ru_RU:ru"

Learn Math

  sudo -s
  cd /opt
  wget -c http://smath.info/file/CrFXM
               /SMathStudioDesktop.0_98_5935.Mono.tar.gz
  tar xf SMathStudioDesktop.0_98_5935.Mono.tar.gz
  echo #!/bin/bash > /usr/local/bin/smath
  echo mono SMathStudio_Desktop.exe >> /usr/local/bin/smath
  chmod +x /usr/local/bin/smath
  sudo apt install mono-complete
  smath

------------------------------------------------------------------------

Gimp, MonoDevelop

  apt-get update
  apt-get upgrade
  apt-get install valac libX11-dev

  ./VBoxLinuxGuestAdditions.run

  sudo apt-get install gedit gedit-valencia-plugin

  apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev \
                  libsdl-mixer1.2-dev libsdl-net1.2-dev \
                  libsdl-ttf2.0-dev libcairo2-dev 

  apt-get install monodevelop
  apt-get install gimp


