G51A0

          Ecosystem destructors

          1. Write some good HOWTO.
          2. Build a Converter.
          3. Put on your form extra button:
               [Build script from current preset]
          4. Display the answer together with a solution.
          Now make it available..

Unity-8 + Mir installation notes
================================
   
On Ubuntu 16.04, install

  sudo apt install unity8-desktop-session-mir # 34/134MB, 218 packages

Notes
-----

Unity 7: GTK+,
Unity 8: Qt, full screen mode (aka metro)

Doesn't run in VirtualBox.

References
----------

[1] https://www.howtoforge.com/tutorial
          /how-to-test-mir-and-unity-8-on-ubuntu-16-04/

[2] http://www.omgubuntu.co.uk/2016/04
         /ubuntu-16-04-unity-8-desktop-progress-video


Arch Linux installation notes
=============================

Follow:

  http://www.cs.columbia.edu/~jae/4118-LAST
       /arch-setup-2015-1.html

Notes
-----

Write the Arch Linux ISO image to the USB stick by using the "dd" command:

  sudo dd if=/home/alien/iso/archlinux-2016.04.01-dual.iso /dev/sdb1

"Boot Arch Linux (x86_64)" at the boot screen.

Is network available?

  ping -c 3 google.com
  
Partition SATA Drive

  fdisk /dev/sda
  
Download and run scripts: stage-1.sh, stage-2.sh, stage-3.sh 
( cat this.txt | grep "^\+N\+" | sed s/\+N\+\ \ // > stage-N.sh )

stage-1.sh

+1+  #!/bin/sh
+1+  # Bootstrap
+1+  
+1+  mkfs.ext4 /dev/sda1
+1+  mkswap /dev/sda2
+1+  swapon /dev/sda2
+1+  mount /dev/sda1 /mnt
+1+  pacstrap -i /mnt base base-devel
+1+  genfstab -U -p /mnt >> /mnt/etc/fstab
+1+  arch-chroot /mnt

File "/etc/locale.gen", remove comment from lines

  en_US.UTF-8 UTF-8
  en_US ISO-8859-1

stage-2.sh

+2+  #!/bin/sh
+2+  # Locales and Users
+2+
+2+  systemctl enable dhcpcd.service
+2+  locale-gen
+2+  echo LANG=en_US.UTF-8 > /etc/locale.conf
+2+  export LANG=en_US.UTF-8
+2+  ln -s /usr/share/zoneinfo/Europe/Tallinn > /etc/localtime
+2+  hwclock --systohc --utc
+2+  echo virtu-PC > /etc/hostname
+2+  useradd -m -g users -G wheel,storage,power -s /bin/bash virtu
+2+  passwd virtu
+2+  pacman -S sudo bash-completion
  
Edit /etc/sudoers. Remove comment from

  %wheel ALL=(ALL) ALL
  
Set password on root account

  passwd
  
stage-3.sh

+3+  #!/bin/sh
+3+  # SSH and GRUB
+3+
+3+  pacman -S openssh
+3+  systemctl enable sshd.service
+3+  pacman -S grub os-prober
+3+  grub-install --recheck /dev/sda
+3+  grub-mkconfig -o /boot/grub/grub.cfg
+3+  exit
+3+  umount -R /mnt

Reboot the machine, Eject installation media

  reboot

Now you can SSH to Arch VM

  ssh virtu@127.0.0.1

Download and run script: stage-4.sh. Reboot into GNOME.

stage-4.sh

+4+  #!/bin/sh
+4+  # install yaourt
+4+
+4+  sudo pacman -S --needed wget base-devel yajl
+4+  mkdir -p ~/temp/AUR/ && cd ~/temp/AUR/
+4+
+4+  wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
+4+  tar xfz package-query.tar.gz
+4+  cd package-query  &&  makepkg
+4+  sudo pacman -U package-query*.pkg.tar.xz
+4+
+4+  wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
+4+  tar xzf yaourt.tar.gz
+4+  cd yaourt  &&  makepkg
+4+  sudo pacman -U yaourt*.pkg.tar.xz
+4+
+4+  sudo pacman -S gnome gnome-extra
+4+  sudo systemctl enable gdm.service
+4+  sudo pacman -S gnome-tweak-tool
+4+  yaourt gnome-software

References
----------

[1]. How to Install and Configure Arch Linux as a Server

      https://www.howtoforge.com/tutorial/install-arch-linux-server/

[2]. AstroFloyd's blog: Installing Yaourt on Arch linux

      https://astrofloyd.wordpress.com/2015/01/17
            /installing-yaourt-on-arch-linux/

[3]. How to install Gnome on Arch Linux [Arch Tutorial]

      http://www.linuxveda.com/2015/03/29
           /how-to-install-gnome-on-arch-linux-arch-tutorial/

[4]. How can I find packages using pacman?

      https://bbs.archlinux.org/viewtopic.php?id=11659

[5]. Arch Linux: From Post-Install to Xorg

      https://www.youtube.com/watch?v=DAmXKDJ3D7M


Centos 7.2 installation notes
=============================

  CentOS-7-x86_64-NetInstall-1511.iso    385MB

  +----------------------------------------------------+
  | Note! THERE IS A SCROLLBAR on installation screen: |
  |       scroll down to see: NETWORK & HOST NAME      |
  +----------------------------------------------------+

  0. Network & Host Name

    Switch enp0s3 [ON]

  1. Date and Time

    Turn on ntp

  2. Software: Installation Source*0

    http://ftp.estpak.ee/pub/centos/7.2.1511/os/x86_64/

  3. System: Install Destinatin

    Automatic partitioning (Enter this item, press [Done])

  4. Software Selection

    Minimal Install (Enter this item, press [Done])

Performing post-installation setup tasks takes long.

  5. Activate SSHD:

     VirtualBox/NAT: port forward 127.0.0.1 22 -> 10.0.2.15 22
     systemctl start sshd
     systemctl enable sshd (permanent)
     systemctl status sshd

  6. Install gnome

     yum upgrade
     yum groupinstall "X Window System"
     yum install gnome-classic-session gnome-terminal \
                 nautilus-open-terminal control-center \
                 liberation-mono-fonts
     unlink /etc/systemd/system/default.target
     ln -sf /lib/systemd/system/graphical.target \
            /etc/systemd/system/default.target

  7. yum groupinstall "Development Tools"
     yum install kernel-devel
     cd /run/media/virtu/VBOXADDITIONS_5.0.20_106931/
     ./VBoxLinuxAdditions.run

  reboot

Result: Minimal + Gnome 3.14 + Development tools takes 555 MB 7-zipped.

Notes
-----

*0) Alternatively use CentOS own mirror:

  http://mirror.centos.org/centos/7/os/x86_64/
  http://mirror.centos.org/centos/7.2.1511/os/x86_64/

*1) Hostname.

  You are talking about in /etc/hosts correct?

    https://bbs.archlinux.org/viewtopic.php?id=156064

  + localhost is a hostname
  + localdomain is a domain name
  + localhost.localdomain is a FQDM... well fully qualified on
    the localsystem

  You need that record because it is suppose to be there.
  It is a standard. If you remove it some software you may
  run may not work correctly.

Appendix A. ..from official FAQ
-------------------------------

  https://wiki.centos.org/FAQ/CentOS7

..
6. From where can I download the 32-bit version?

The 32-bit release of CentOS 7 can be downloaded from http://mirror.centos.org/altarch/7/isos/i386/

7. What have you done with ifconfig/netstat?

The ifconfig and netstat utilities have been marked as deprecated in the man pages for CentOS 5 and 6 for nearly a decade and Redhat made the decision to no longer install the net-tools package by default in CentOS 7. One reason to switch is that ifconfig does not show all details of ip addresses assigned to interfaces -- use the ip command instead. The replacement utilities are ss and ip. If you really really need ifconfig and netstat back then you can yum install net-tools.
..

Appendix B. CentOS-7 "Minimal Desktop" installation GNOME
---------------------------------------------------------

  https://www.centos.org/forums/viewtopic.php?t=47088

CentOS7 Minimal Desktop Installation [2]

you can do following steps:

  1. Install CentOS-7 - Minimal (First entry point in list)
  2. yum groupinstall "X Window System"
  3. yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
  4. unlink /etc/systemd/system/default.target
  5. ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
  6. reboot

References
----------

[1]. Network install

  http://www.if-not-true-then-false.com/2014/centos-7-netinstall-guide/

[2]. CentOS7 Minimal Desktop Installation

  http://www.dokuwiki.tachtler.net
     /doku.php?id=tachtler:centos_7_-_minimal_desktop_installation


Fedora 24. installation notes
=============================

Install from [1].

  Fedora-Everything-netinst-x86_64-24-20160430.n.0.iso

Read Centos 7.2 installation notes pp. 5 - 7.
Old dog, new tricks..

  # dnf upgrade
  # dnf grouplist hidden    # Check groups
  # dnf groupinstall base-x
  # dnf clean packages
  # dnf install gnome-classic-session gnome-terminal nautilus \
                control-center liberation-mono-fonts
  $ startx

Mirrors

  https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-24&arch=x86_64

  http://ftp.acc.umu.se/mirror/fedora/linux/development/24/Everything/x86_64/os/
  http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub
       /fedora/linux/development/24/Everything/x86_64/os

References
----------

[1] Night builds

  https://www.happyassassin.net/nightlies.html

[2] http://grokbase.com/t/centos/centos/152v2g5m6a
         /package-group-x-window-system-has-disappeared