Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Upgrading our training systems to all the current stable versions

Programming languages are the eye of the storm in software development - the calm in the midst of the gales, an area where changes are gradual and gentle. It really needs to be that way, for who wants to pay for development of code when it's going to have a short shelf life?

And so developers write code that's leading edge code and algorithms, but with languages that are merely modern rather than leading edge or bleeding edge. Code needs to work rather than be too clever to work. So I find myself only difting of late into Python 3 courses and still doing a lot of Python 2, and Perl 6 still sits on the horizon.

But operating systems march on, and the version we've been running on our laptops has been getting long in the tooth, grey in the hair, and has started to have bad breath. Still a fine operting system, but it's embarrassing when it tells your delegates it's rather out of date. So I'm taking the opportunity of few days clear of customer facing work to upgrade the underlying Linux release to the most recent "Long Term Support" version on our training systems, and install recent versions of the laguages and servers we teach on them too. A useful exercise, and I'm logging it here so that I can refer back to procedures later and clarify versions and options used for our delegates. But the log will be in a summary form - you'll be able to follow it if you've been through our Linux training ;-) ... or very likely if you've not as well.

Release is Ubuntu 12.04.2, install from USB stick (from Pen Drive)
Other software to be added - Rails, CodeIgniter, Django

 0. Set up distribution on pen drive
   http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
   http://www.pendrivelinux.com/creating-an-ubuntu-live-usb-from-cd/
 
 1. Backup old trainee account
 
 2. Install from pen drive ...
   SD4 for main OS
   Main disc for boot
   final slice for swap
   no network
   account Graham Ellis / Trainee / abc123
 
 3. Enable networking
 
 4. Install langauges (perl 5.14.2
 and python 2.7.3 and gcc 4.6.3 already present)
   sudo apt-get install lua5.2
   sudo apt-get install ruby1.9.1
   sudo apt-get install php5-cli
   sudo apt-get install python3-mimimal
   sudo apt-get install tk8.5
   sudo apt-get install expect
   sudo apt-get install rakudo
   sudo apt-get install openjdk-7-jdk
 
 5. Install a default set of servers
   sudo apt-get install apache2-mpm-prefork
   sudo apt-get install mysql-server-core-5.5
   sudo apt-get install mysql-client-core-5.5
   sudo apt-get install openssh-server
 for PHP build ...
   sudo apt-get install libxml2-dev
   
 6. Download
   httpd-2.2.27.tar.gz
   httpd-2.4.9.tar.gz
   php-5.5.11.tar.gz
   apache-tomcat-8.0.5.tar.gz
   apache-tomcat-7.0.53.tar.gz
 and from www.wellho.net
   latmjdemo.war
   data.xyz.tgz
   trainee.tgz
 (All these in downloads.tgz on the pen drive)
 
 7. Set up root account ((and test)) and add a reference local directory
   sudo passwd root
   su -
   mkdir /usr/ref
   exit
 
 8. Test base installs / set up a reference set
   cd
   mkdir ref
   cd ref
 
 8a) - httpd
   tar xzf ../Downoads/httpd-2.2.27.tar.gz
   cd httpd-2.2.27
   ./configure --prefix=/usr/ref/apache2 --enable-rewrite --enable-so --enable-proxy --enable-proxy-http --enable-proxy-balancer --enable-proxy-ajp --enable-dav --enable-info
   make
 as root
   make install
   cd /usr/ref/apache2/conf and change to port 81
   cd ../bin
   ./apachectl start
 from a browser
   visit localhost:81
 and when tested, as root
   ./apachectl stop
 
 8b) - php
   tar xzf ../Downloads/php-5.5.11.tar.gz
   cd php-5.5.11
   ./configure --prefix=/usr/ref --with-apxs2=/usr/ref/apache2/bin/apxs --with-mysql --with-mysqli
   make
 as root
   make install
   cp /home/trainee/ref/php-5.5.11/php.ini-development /usr/ref/lib/php.ini
 check that httpd config file contains
   LoadModule php5_module modules/libphp5.so
 and that it maps php files
   <FilesMatch "\.php[0-9]?$">
   SetHandler application/x-httpd-php
   </FilesMatch>
 
 At /usr/ref/apache2/htdocs/test.php add
   <?php phpinf0(); ?>
 
   cd /usr/ref/apache2/bin
   ./apachectl start
 from a browser
   visit localhost:81/test.php
 and when tested, as root
   ./apachectl stop
 
 8c) Tomcat
 as root
   cd /usr/ref
   tar xzf ~trainee/Downloads/apache-tomcat-7.0.53.tar.gz
   ln -s apache-tomcat-7.0.53/ tomcat
   cd tomcat
   ./bin/startup.sh
 from a browser
   visit localost:8080


Guadalajara completed today ... Albany, Caerphilly, Edinburgh, Frankfurt, Helsinki and Manticore to be completed tomorrow. Dharhan has disc drive issues; Brugges a cracked screen (and I will probably leave it as a "control" system. Izmir and Juneau (our old internal staff systems - smart blue covers rather than smart yellow ones) may also be brought into the fold, and we have a spare system to install too; I'll probably rename Manticore into the "places I have trained" series - poetic license and I'll call in Kintbury, which is near enough to Newbury and the final machine need to start with an "L" - it's going to have to be called "Liverpool"!
(written 2014-04-07)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A165 - Web Application Deployment - Installing Software
  [809] What to do during a Linux build - (2006-07-20)
  [1700] FTP server on Fedora Linux - (2008-07-06)
  [2139] OS Commerce install made simple - (2009-04-24)
  [2201] Running straight from the jar, but not from a tar - (2009-05-26)
  [3053] Make - automating the commands for building and installing - (2010-11-16)

A051 - Web Application Deployment - Linux - General
  [2023] sw_vers - what version of OSX am I running? - (2009-02-03)
  [2035] 1234567890 ... coming up on Friday 13th - (2009-02-11)
  [3219] How do I become a Linux System Administrator? - (2011-03-28)
  [3902] Shell - Grep - Sed - Awk - Perl - Python - which to use when? - (2012-10-22)


Back to
Keeping you Tkinter display up to date while monitoring
Previous and next
or
Horse's mouth home
Forward to
Why we teach Lua
Some other Articles
Chippenham - Melksham - Trowbridge, public transport over Easter (2014)
Updated staff systems helps us look after our customers better
Updated delegate computers - nine of the best
Why we teach Lua
Upgrading our training systems to all the current stable versions
Keeping you Tkinter display up to date while monitoring
Over a pound a kilometre - my bus in Weston-super-mare
Train fare look expensive? There may be a cheaper option
Making a personal gain from a more expensive business hotel stay
Where is Melksham Market? In the Market Place, every Tuesday
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/4259_Upg ... sions.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb