ubuntu Post-Installation Notes


ubuntu-18.04.1 Installation - Blow-by-Blow       ubuntu_blowByBlow


    a) Perform Installation from DVD:

          1) Language "English"

          2) Keyboard "English (US)" or "Switzerland"

          3) Username "installer", full name "Installer"

          4) On the Updates and otherSoftware page, select:
              a) Normal Installation;
              b) Perform updates during installation;
              c) Install 3rd party stuff for graphics, etc.

             Note and Warning: On the HP Pavilion Notebook, selecting Item c) invokes
                   a prompt for a password because of security issue concerning
                   the "Secure Boot" option in the BIOS. If you are using a non-qwerty
                   keyboard, avoid non-alphanumeric characters because, when you
                   get prompted for this password at the next system boot, the
                   BIOS will assume that you are using a qwerty keyboard, and you
                   might have trouble finding any special characters that you may
                   have used.

          5) On the Installation Type page, select Something Else.
             Pick the /, Swap and /home partitions carefully.

          6) Continue with the installation.

    b) Boot new system and perform system update.

    c) Add the standard family accounts:

       sudo addgroup --gid 1001 family
       sudo adduser --no-create-home --uid 1001 --gid 1001 family
       sudo adduser --no-create-home --uid 1002 --gid 1001 kari
       sudo adduser --no-create-home --uid 1003 --gid 1001 kathryn
       sudo adduser --no-create-home --uid 1004 --gid 1001 david
       sudo adduser --no-create-home --uid 1005 --gid 1001 visitor

    d) Install synaptic to help with package installation:

          sudo apt-get install synaptic

       Then also install apt-xapian-index and force an index update thus:

          sudo apt-get install apt-xapian-index
          sudo update-apt-xapian-index -vf

       to get the quick filter feature of synaptic to appear.

    e) Use synaptic to install emacs.

    f) Edit /etc/group to give david and kari sudo privilege. Execute:

           sudo emacs /etc/group

       and replace (almost everywhere) "installer" with "installer,david,kari".

    g) Install our favourite packages, for example by copying and
       pasting the following command list into a terminal window.

        pkts="      feh "                      # Simple image viewer
        pkts="$pkts php-cli "                  # php command line interpreter
        pkts="$pkts php-mbstring "             # php support for multi-byte strings
        pkts="$pkts imagemagick "              # Bitmap image edit functions
        pkts="$pkts jhead "                    # jpeg Exif header utility
        pkts="$pkts cvs "                      # Concurrent Versions System
        pkts="$pkts openssh-server "           # Allow ssh access
        pkts="$pkts gfortran "                 # Fortran compiler
        pkts="$pkts gnome-tweak-tool "         # Needed to enable multiple desktops
        pkts="$pkts filezilla "                # ftp GUI
        pkts="$pkts sound-juicer "             # A CD ripper
        pkts="$pkts banshee "                  # An audio player
        pkts="$pkts a2ps "                     # ASCII to PostScript conversion
        pkts="$pkts texlive-latex-base "       # latex word processor
        pkts="$pkts texlive-lang-german "      # German support for latex
        pkts="$pkts youtube-dl "               # YouTube downloader
        pkts="$pkts gimp "                     # Image editor
        pkts="$pkts tkcvs "                    # Note: tkcvs does not work properly under
                                               #   ubuntu 18.04.1, but the package includes
                                               #   tkdiff, which is useful.
        pkts="$pkts xfig "                     # Graphics tool
        pkts="$pkts xsane "                    # Image scanner
        pkts="$pkts dconf-editor "             # Allows more setup changes than "System Settings"
        pkts="$pkts sox "                      # Includes the "play" utility
        pkts="$pkts default-jdk "              # OpenJDK Development Kit (needed for java compilation)
        pkts="$pkts graphicsmagick "           # Includes the gm utility
        pkts="$pkts mdbtools "                 # JET/MS-Access database (MDB) tools.
        pkts="$pkts smartmontools "            # Includes smartctl. Used to display SMART
                                               #      data of USB disk.
        pkts="$pkts mencoder "                 # Tool that will rotate movies (previously
                                               #   we used avidemux, but that seems
                                               #   to disappeared from ubuntu).
        pkts="$pkts gnome-tweak-tool "         # Includes gnome-tweaks.
        pkts="$pkts xinetd "                   # Needed for CVS Server (see below).

        for pkt in $pkts; do
          echo sudo apt-get install -y $pkt
        done

       Another possibly useful packet:
        pkts="$pkts ubuntu-restricted-extras " # Supports mp3, etc, I think.

       The following packages have been used in the past, but now are no longer supported. :-(
          pdftk          - can split up a multipage pdf document.
          avidemux       - tool that will rotate movies.
          acrobat-reader - pdf Viewer.

    h) Set up the OfficeJet printer.

    i) Use gnome-tweaks to:
         a) enable 4 desktops and
         b) include the date in the "top bar".

       Use "keyboard settings" to set keys F1, F2, F3, F4, or
       Ctrl-1, Ctrl-2, Ctrl-3, Ctrl-4,  as shortcuts to them.

    j) It seems as though Acrobat Reader is no longer supported under
       linux by Adobe. So we must learn to use documentReader (evince) instead.
       The following notes were valid for ubuntu 12.04. They are kept in case
       they might be useful:
       
           Install Acrobat Reader either thus:

              a) In synaptic
                    --> Settings
                      --> Repositories 
                        --> Other Software
                          --> Add ...
                            --> APT Line
                 Enter:
                  deb http://archive.canonical.com/ precise partner

                On clicking "Add Source", you should be prompted to do an update. After
                this, one can install "acroread" in the usual way.
           or
              b) cd ~/Downloads
                 wget -c \
                   http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
                 sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
                 mimeopen -d *.pdf
       

    k) On the pc, set up the cvs server:
       ================================
          See here, perhaps.

       1) Add accounts for cvs:

           Check the setting of _cvsadmin in /etc/group. Assuming it is 130, then
           check that uid 130 is not set in /etc/passwd

             grep 130 /etc/passwd
             sudo adduser --uid 130 --gid 130 --no-create-home --force-badname _cvs
             sudo adduser david _cvsadmin
             sudo adduser kari  _cvsadmin

       2) Set up the external USB disk drive:

             sudo mkdir /wolfLinux /WolfDOS
             sudo cat >> /etc/fstab
             #---------------------------------------------------------------------------------------
             #    External USB disks
             #
             UUID=3d6b09b7-c120-4d6f-a950-6c2a3dee9bbd /wolfLinux auto defaults,nofail,user 0 2
             UUID=3BB1-ED77                            /WolfDOS   auto defaults,nofail,user 0 2
             #---------------------------------------------------------------------------------------

       3) Mount the external USB disk partitions:

             sudo mount -a

       4) Create:
                    /etc/xinetd.d/cvspserver
          containing:

            service cvspserver
            {
              port = 2401
              socket_type = stream
              protocol = tcp
              user = root
              wait = no
              type = UNLISTED
              server = /usr/bin/cvs
              server_args = -f --allow-root /wolfLinux/CVSdavid \
                               --allow-root /wolfLinux/CVSkari  pserver
              disable = no
            }

          where the "server_args" information is all on one line, not split as
          shown. Then execute:

             sudo /etc/init.d/xinetd restart

          and test that the server has started with the command:

             sudo netstat -tap | grep cvs

          One should see something like:

             tcp        0      0 *:cvspserver ...

    l) Create file for Archos Tablet USB recognition:

         > sudo vi /etc/udev/rules.d/51-archos.rules

       The file has a single record:
         SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="plugdev"

    m) Install android studio:

         The following packages must also be installed with synaptic, apparently:

           lib32z1 lib32ncurses5 lib32stdc++6

         Download android-studio-ide-145.3276617-linux.zip from Android Developer site.
         su -
         cd /opt
         unzip .../android-studio-ide-*.zip
         cd
         /opt/android-studio/bin/studio.sh

       and let the Setup Wizard run. For Type of Setup, select Custom
       and set the SDK location to be:

         /opt/android-sdk

       Skip the installation of "accelerated performance mode".
       Accept the licence, and let the setup run to completion.

       Perform a possible update of the studio software (bottom of Welcome window).

         logout (from root)

       and start studio.sh as a normal user.

       The Setup Wizard will probably start. When it gets to downloading
       the SDK, cancel the operation. Then do a Configure thus:

         From the Android Studio welcome window, follow:
              Configure
                --> Project Defaults
                  --> Project Structure

       and set the Android SDK location to be /opt/android-sdk/Sdk.
       You should be able to create a first project.
       
    n) This is obsolete, since I've stopped using eclipse for Android development.
       Install the Android SDK Starter Package by downloading the zip file from:

          http://developer.android.com/training/

       to
          ~/android/adt-bundle-linux-x86/

       Expand the file using unzip, and subsequently use the eclipse executable found in:

          ~/android/adt-bundle-linux-x86/adt-bundle-linux-x86-yyyymmdd/eclipse/