G5E90

          Цели намечены, перья наточены, пушки заряжены, роли разучены.

          Макаревич -- Кутиков, Вы, Завтра был снег, 2016 (1:48)

Об опыте содержания наземной белки в домашних условиях
------------------------------------------------------

Речь, конечно, пойдет об Ubuntu 16.04 (Xenial Xerus). Дело в том, что производительность виртуальной машины Hamster-2, которую я использую в классах под VirtualBox (хост Windows 10 x64-86), меня не устраивает, поэтому я решил построить максимально похожую конфигурацию на реальном железе. Подробности создания виртуальной машины видны из файла

  /home/virtu/_so_far_.txt
  
текст из файла скопирован в приложение А.


Приложение А. Hamster-2 progress
              ------------------
G5L

RHVoice

  sudo apt install git scons g++ flite flite1-dev expat \
           libunistring-dev libsox-dev libglibmm-2.4-dev \
           libpulse-dev pkg-config
  git clone https://github.com/Olga-Yakovleva/RHVoice.git
  cd RHVoice
  scons
  sudo scons install
  sudo ldconfig
  sudo cp -a /usr/local/bin/sd_rhvoice \
             /usr/lib/speech-dispatcher-modules
             
  sudo cat /etc/speech-dispatcher/modules/rhvoice.conf

  RHVoiceDataPath "/usr/local/share/RHVoice"
  RHVoiceConfigPath "/usr/local/etc/RHVoice/"
  RHVoicePunctuationMode 0
  #RHVoicePunctuationList "@+_"
  RHVoiceDefaultVoice "Aleksandr"
  RHVoiceDefaultVariant "Pseudo-English"
  Debug 0

  sudo cat /etc/speech-dispatcher/speechd.conf | grep ^AddModule

  AddModule "rhvoice" "sd_rhvoice" "rhvoice.conf"

Fine tuning

  sudo cat /usr/local/etc/RHVoice/RHVoice.conf

  ; Значения высоты, скорости и громкости по умолчанию. В настройках
  ; NVDA они будут соответствовать пятидесяти процентам.
  default_pitch=2.0
  ; default_rate=1.0
  ; default_volume=1.0
  
Test

  echo "Хотите выключить свет на кухне?" | RHVoice-test -p Anna
  echo "Хотите выключить свет на кухне?" | RHVoice-test -p Irina
  echo "Хотите выключить свет на кухне?" | RHVoice-test -p Elena
  echo "Хотите выключить свет на кухне?" | RHVoice-test -p Aleksandr
  
Links
  
  http://s-mc.net/publ/7-1-0-50
  http://onedev.net/post/245
  http://forum.ubuntu.ru/index.php?topic=259782.0
  http://www.adme.ru/zhizn-nauka
       /200-skorogovorok-dlya-razvitiya-dikcii-887160/

G5I

  # http://gazebosim.org/tutorials?tut=install_ubuntu&cat=install

  sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'

  wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

  sudo apt-get update
  sudo apt-get install gazebo7 libgazebo7-dev

  gazebo

G5E

EmScripten + DOSBox

  apt install cmake
  apt install nodejs
  apt install git-core
  apt install libsdl-image1.2-dev
  
  wget -c https://s3.amazonaws.com/mozilla-games/emscripten
          /releases/emsdk-portable.tar.gz
  tar xf emsdk-portable.tar.gz
  rm emsdk-portable.tar.gz
  
  mkdir blocks-from-hell
  cd blocks-from-hell
  wget -c http://image.dosgamesarchive.com/games/blocks.zip
  unzip blocks.zip

build of emscripten takes some time now. Please follow

  https://gist.github.com/gogromat/98a748bc8f447480b005
  
Annex B contains Ubuntu 16.04 steps to reproduce result in a named article.
  
G56

Succeeded to put C:B icon on the Plank (have to be nimble)
Succeeded to put IDLE icon (search idle, run, keep on plank)

  apt install libx11-dev
  apt install python-xlib
  apt install python-visual
  apt install idle-python2.7
  apt install python-pip
  apt install imagemagick
  apt install python-imaging
  apt install libjpeg9 libjpeg9-dev 
  apt install libfreetype6 libfreetype6-dev
  apt install zlib1g-dev
  pip install pillow

G4T

Settings -> Formats -> United States

http://www.webupd8.org/2016/04/how-to-install-gnome-320-in-ubuntu.html

  sudo add-apt-repository ppa:gnome3-team/gnome3-staging
  sudo apt update
  sudo apt-update

The following packages will be REMOVED:
  grilo-plugins-0.2-base grilo-plugins-0.2-extra libmutter0g
  
Revert changes:

  sudo apt install ppa-purge
  sudo ppa-purge ppa:gnome3-team/gnome3-staging
  
  gnome-tweak-tool -> windows -> titlebar buttons
    minimize [on]
    maximize [on]
    
  sudo apt remove libreoffice* imagemagick* rhythmbox* empathy* brasero* evolution*
  sudo apt install gdm gdm3 gnome-shell

G4S

  added to plank: gedit, tuned tab as space 2, font 14.
  removed from startup: gnome-software
  bluegriffon 1.8 for ubuntu 15.04 downloaded unpacked and moved to /opt
  julia from http://julialang.org/ downloaded unpacked and moved to /opt

   76  cd Downloads/
   77  tar xf bluegriffon-1.8.Ubuntu15.04.x86_64.tar.bz2 
   78  sudo -s
   79  cd ..
   80  /opt/bluegriffon/bluegriffon
   81  sudo vi bluegriffon 
   82  sudo mv bluegriffon /usr/local/bin
   83  vi _so_far_.txt 
   85  sudo apt remove empathy brasero evolution gnome-music
   90  sudo apt remove gnome-mahjongg gnome-mines gnome-sudoku aisleriot
   94  history | tail -n 30 >> _so_far_.txt 

Older

    1  sudo apt-get update
    2  sudo apt-get upgrade
    3  sudo apt-get remove libreoffice-*
    4  sudo apt-get install deadbeef
    5  sudo add-apt-repository ppa:starws-box/deadbeef-player
    6  sudo apt-get update
    7  mc
    8  apt install plank
    9  which plank
   10  exit
   11  sudo apt-get install deadbeef
   12  sudo apt-get remove rythmbox
   13  sudo apt-get remove rhythmbox
   14  sudo apt-get install build-essential codeblocks codeblocks-contrib subversion vim intltool qt5-default arduino pavucontrol
   15  sudo apt-get install mono-complete wine
   16  sudo apt-get install mc
   17  sudo -s
   18  mc
   19  exit
   20  mc
   21  exit
   22  wine 
   23  mc
   24  sudo -s
   25  mc
   26  cd Wine/
   27  cd UnoArduSimV1.4.3/
   28  ls
   29  cd UnoArduSimV1.4.3/
   30  ls
   31  wine UnoArduSim.exe 
   32  cd ..
   33  cd ~
   34  cd ..
   35  cd virtu/
   36  cd .wine/drive_c/VMLAB/bin/
   37  ls
   38  cd ~
   39  cp avrsimulatoride smath
   40  vi smath 
   41  ls
   42  chmod +x avrsimulatoride smath unoardusim vmlab 
   43  ls -l
   44  sudo mv avrsimulatoride smath unoardusim vmlab /usr/local/bin/
   45  smath 
   46  arduino
   47  smath
   48  vmlab 
   49  sudo apt install qbittorrent
   50  sudo apt install vlc
   51  mc
   52  pwd
   53  ls -la
   54  cd .wine/drive_c/AVR\ Simulator\ IDE/
   55  ls
   56  echo wine avrsimulatoride.exe >> ~/avrsimulatoride
   57  echo "cd .wine/drive_c/AVR\ Simulator\ IDE/" >> ~/avrsimulatoride 
   58  cd ~
   59  vi avrsimulatoride 
   60  cp avrsimulatoride unoardusim
   61  vi unoardusim 
   62  sh unoardusim
   63  cp avrsimulatoride vmlab
   64  vi vmlab
   65  ls -l /opt
   66  ls -l /opt/SMath/
   67  mono /opt/SMath/SMathStudio_Desktop.exe 
   68  sudo apt-get autoremove
   69  sudo apt-get clean
   70  dd if=/dev/zero of=biig bs=32768K ; rm biig
   71  avrsimulatoride &
   72  sudo apt-get update
   73  sudo apt-get upgrade
   74  history > _so_far_.txt
   65  ls -l /opt
   66  ls -l /opt/SMath/
   67  mono /opt/SMath/SMathStudio_Desktop.exe 
   68  sudo apt-get autoremove
   69  sudo apt-get clean
   70  dd if=/dev/zero of=biig bs=32768K ; rm biig
   71  avrsimulatoride &
   72  sudo apt-get update
   73  sudo apt-get upgrade
   74  history > _so_far_.txt
   75  vi _so_far_.txt 
   76  cd Downloads/
   77  tar xf bluegriffon-1.8.Ubuntu15.04.x86_64.tar.bz2 
   78  sudo -s
   79  cd ..
   80  /opt/bluegriffon/bluegriffon
   81  sudo vi bluegriffon 
   82  sudo mv bluegriffon /usr/local/bin
   83  vi _so_far_.txt 
   84  sudo apt remove empathy brazero evolution music
   85  sudo apt remove empathy brasero evolution gnome-music
   86  sudo apt remove empathy brasero evolution gnome-music gnome-games
   87  sudo apt remove mahjongg
   88  dpkg -l | grep game
   89  sudo apt autoremove
   90  sudo apt remove gnome-mahjongg gnome-mines gnome-sudoku aisleriot
   91  sudo apt search julia
   92  history | head -n 30
   93  history | tail -n 30
   94  history | tail -n 30 >> _so_far_.txt 

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

Annex B.

  # prerequisites
  sudo apt-get update
  sudo apt-get install build-essential
  sudo apt-get install cmake
  sudo apt-get install python2.7
  sudo apt-get install nodejs
  sudo apt-get install git-core

  # oracle java
  sudo apt-get autoremove openjdk-8-jre
  sudo apt-get purge openjdk*
  sudo add-apt-repository ppa:webupd8team/java
  sudo apt-get update
  sudo apt-get install oracle-java8-installer

  sudo apt-get install libsdl-image1.2-dev
  wget -c https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
  tar xf emsdk-portable.tar.gz
  cd emsdk_portable
  ./emsdk update
  ./emsdk install latest # takes some hours..
  ./emsdk activate latest
  source ./emsdk_env.sh
  
  sudo echo "export EMSCRIPTEN_ROOT=$EMSCRIPTEN:" >> ~/.bashrc
  sudo echo "export PATH=$PATH:$EMSCRIPTEN:" >> ~/.bashrc

      source ~/.bashrc

  # Check if you have commands:
  #   emconfigure
  #   emcc
  #     INFO:root:(Emscripten: Running sanity checks)
  #     WARNING:root:no input files
  #   nodejs
  #     > .exit
  emconfigure
  emcc
  nodejs

  # dosbox
  cd ~
  sudo apt-get install autoconf automake
  git clone https://github.com/dreamlayers/em-dosbox.git
  cd em-dosbox
  sudo -s
  ./autogen.sh
  emconfigure ./configure
  make

  # game: blocks from hell
  cd src
  wget -c http://image.dosgamesarchive.com/games/blocks.zip
  unzip blocks.zip
  ./packager.py blocks blocks.exe
  python -m SimpleHTTPServer
  firefox localhost:8000/dosbox.html
  firefox localhost:8000/blocks.html
  
------------------

virtu@virtu-PC:~/emsdk_portable$ ./emsdk activate latest
Writing .emscripten configuration file to user home directory /home/virtu/
The Emscripten configuration file /home/virtu/.emscripten has been rewritten with the following contents:

import os
LLVM_ROOT='/home/virtu/emsdk_portable/clang/fastcomp/build_master_64/bin'
NODE_JS='/home/virtu/emsdk_portable/node/4.1.1_64bit/bin/node'
EMSCRIPTEN_ROOT='/home/virtu/emsdk_portable/emscripten/master'
EMSCRIPTEN_NATIVE_OPTIMIZER='/home/virtu/emsdk_portable/emscripten/master_64bit_optimizer/optimizer'
SPIDERMONKEY_ENGINE = ''
V8_ENGINE = ''
TEMP_DIR = '/tmp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]

To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
   /home/virtu/emsdk_portable:/home/virtu/emsdk_portable/clang/fastcomp/build_master_64/bin:/home/virtu/emsdk_portable/node/4.1.1_64bit/bin:/home/virtu/emsdk_portable/emscripten/master
virtu@virtu-PC:~/emsdk_portable$ 
