Let all of your computers update your software automatically. Once you’ve packaged your scripts, put them in your own repository. Your workstations and servers can then automatically install latest versions of your programs.
Prequisites: Packaging, Apache web server, Command line, Commands for Admin (sudo, apt)
First, create your own package. For example, you can create a metapackage.
Install a web server and enable user homepages.
This procedure was succesfully tested by more than 20 students on Ubuntu 11.04 Natty 32bit.
Create and Configure Empty Repository
$ cd $ cd public_html/ $ mkdir -p repository/conf
$ nano repository/conf/distributions Codename: lucid Components: main Suite: lucid Architectures: i386 amd64 source
Add .deb Packages
Use your own package here
$ reprepro -VVVV -b repository/ includedeb lucid teros-scripts/teros-*.deb
Install Repository to Clients
On client:
$ sudoedit /etc/apt/sources.list.d/repository.list deb http://10.0.0.1/~tero/repository lucid main
Then you can install and update packages
$ sudo apt-get update
$ sudo apt-get install teros-scripts
Update: nano /etc/… -> sudoedit /etc/… Tested by 20+ students.












BotBook.com
Sulautetut.fi
/etc/apt/apt.conf.d/10periodic
Fix: “nano /etc/apt/sources.list.d/repository.list” -> should be “sudoedit /etc/apt/sources.list.d/repository.list
Make slaves (workstations & servers) install updated packages automatically (not yet tested):
APT::Periodic::Update-Package-Lists “1″;
APT::Periodic::Download-Upgradeable-Packages “1″;
APT::Periodic::AutocleanInterval “7″;
APT::Periodic::Unattended-Upgrade “1″;
https://help.ubuntu.com/10.04/serverguide/C/automatic-updates.html