Plateforme Universaitaire de déploiement de client FreeBSD.

Slides:



Advertisements
Similar presentations
E. Ferro, CNAF, aprile LCFG: testbed upgrade Enrico Ferro INFN-LNL.
Advertisements

Scientific LINUX 3.03 Installation at Glasgow W. H. Bell, A. J. Flavell.
Unité 3 Leçon oui! Yes! 2. mais oui! Sure! 3. Bien sûr! Of course! 4. Non! No 5. Mais non! Of course not! 6. Peut-être Maybe 7. Pierre est….. Pierre.
Platforms: Unix and on Windows. Linux: the only supported production platform. Other variants of Unix, like Mac OS X: run Hadoop for development. Windows.
DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr Carlo Izzo Using External Libraries.
Topic - DATA PROVIDERS TRAINING COURSE DEPLOYMENT PROCESS MINCyT, Buenos Aires, Argentina, 7 – 11 October 2013.
VPN using SSH Implementing a secure Unix to Unix Virtual Private Network Gary Stainburn Ringways Garages Ltd.
Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
CARA INSTALASI EPRINTS
Hyrax Installation and Customization ESIP ‘08 Summer Meeting Best Practices in Services and Data Interoperability Dan Holloway James Gallagher.
Developing in CAS. Why? As distributed you edit CAS 3 with Eclipse and build with Maven 2 – Best Practice for Release Engineering – Difficult edit-debug.
Mukesh Pund Scientist, NISCAIR, New Delhi
Gezongen door Dana : Dana Winner Vertaling Paul wammes "Conquête du Paradis" "Conquest of Paradise"
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
FreeBSD Overview Comparison with Linux ccTLD Workshop June 20, 2006 Samoa Hervey Allen.
Heartbeat au LAL démo et discussion Marec erwan Charbonnel Jaclin.
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Presented by: Bill Ball Haroon Haider Khan Hoyt Duff.
INSTALLING LINUX.  Identify the proper Hardware  Methods for installing Linux  Determine a purpose for the Linux Machine  Linux File Systems  Linux.
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Git/Unix Lab March Version Control ●Keep track of changes to a project ●Serves as a backup ●Revert to previous version ●Work on the same files concurrently.
CIT 140: Introduction to ITSlide #1 CIT 140: Introduction to IT Advanced Shell Programming.
More Shell Programming Learning Objectives: 1. To learn the usage of environment (shell) variables in shell programming 2. To understand the handling of.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Unix Basics Chapter 4.
Software Engineering in Robotics Packaging and Deployment of Systems Henrik I. Christensen –
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
UNIX ™ /Linux Overview Unix/IP Preparation Course May 23, 2010 Kigali, Rwanda.
Shell Script Yingying Wang. Basic Commands Good resources Google is your friend
A Menu-Driven Application Yonglei Tao. Problem Statement  Develop a script program that allows the user to create and maintain an directory, called.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
The UNIX OS Peter J. Vasquez Sr. CSCI The UNIX OS What is UNIX? OpenBSD Installation Introduction to VI OpenBSD Configuration Introduction to.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 29, 2011 Dar es Salaam, Tanzania.
FreeBSD Software Management. WatITis | Collaboration in a Distributed Environment | December 2, 2003 | Automagic Software Management Overview FreeBSD.
CS252: Systems Programming Ninghui Li Slides by Prof. Gustavo Rodriguez-Rivera Topic 7: Unix Tools and Shell Scripts.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
SA-NA Junction. FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release version 7.0 January 2009, 6.3 November 2008
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Various 2. readonly readonly x=4 x=44 #this will give an error (like what in java?)
Experiment No. 13 Presented by, Mr. Satish Pise. Write a shell script which checks disk space and store the value to the variable and display it. #!/bin/sh.
Operating Environment. Installation and Upgrade Options Solaris suninstall program Solaris Web Start Installation Custom Jumpstart procedure Standard.
Installation. All Rights Reserved © Alcatel-Lucent | Installation Module Objectives  Installation  Startup and process monitoring  Uninstallation.
SciDAC SSS Quarterly Report Sandia Labs January 25, 2005 William McLendon Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed.
Thousands of Linux Installations (and only one administrator) A Linux cluster client for the University of Manchester A V Le Blanc I T Services University.
UNIX Filesystem and Hierarchy AfNOG 2008 Workshop May Rabat, Morocco.
Using Linux Kaya Oğuz Room: 310.
1 Introduction to PiSi (Pardus Package Manager) Görkem Çetin TÜBİTAK/UEKAE
Installing Applications in FreeBSD
Homework #01 FreeBSD Installation
Pkgng.
Linux 101 Training Module Linux Basics.
NA4/medical imaging. Medical Data Manager Installation
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Linux file system "On a UNIX system, everything is a file;
Part 1: Basic Commands/Utilities
Automating FreeBSD Installations Randi Harper
UNIX Filesystem and Hierarchy
Command Line Interface for Beginners
CSE 374 Programming Concepts & Tools
Lab 1 introduction, debrief
Cordova & Cordova Plugin Installation and Management
Post Install Configuration FreeBSD
Presentation transcript:

Plateforme Universaitaire de déploiement de client FreeBSD

Description Chaque nuit « cvsupd » est synchronisé sur « cvsup.fr.freebsd.org ». Humainement nous effectuons un portupgrade sur les packages installés sur « mkpkg », notre master. Nous en portinstallons de nouveaux à la demande. Quand cela est terminé, les dépôts cvsup et package sont mis à jour sur « pkgftp ». Enfin les machines se trouvant sur les sites 1 et 2 peuvent cvsuper leurs arborescences de port et portupgrader leurs packages depuis « pkgftp ».

create_all_pkg.sh #!/bin/sh PKGDIR=/home/ftp/pub/pkg rm -rf $PKGDIR/* list-deps () { pkg_info > $PKGDIR/result DEPS=`awk '{print \$1}' $PKGDIR/result` rm -f $PKGDIR/result return }

create_all_pkg.sh create-pkg () { if [ $# -eq 0 ] then echo "Usage create-pkg pkg-name"; exit 1; fi cd $PKGDIR pkg_create -b $1 $1.tbz return }

create_all_pkg.sh list-deps for PKG in $DEPS do if [ ! -f $PKGDIR/$PKG.tbz ] then echo "$PKG...[BUILDING] create-pkg $PKG else echo "$PKG...[EXIST] fi done

Install.cfg tryDHCP=YES debug=yes nonInteractive=YES noConfirm=YES noWarn=NO ############################################ hostname=jumstart ############################################ disk=ad0 partition=all bootManager=standard diskPartitionEditor ############################################ ad0s1-1=ufs / ad0s1-2=swap none ad0s1-3=ufs /var ad0s1-4=ufs 0 /usr 1 diskLabelEditor ############################################ dists=base manpages distSetCustom netDev=em0 _ftpPath=ftp://open-projects.univ-mlv.fr/pub/FreeBSD/ mediaSetFTP ############################################ installCommit

pkg-install.sh #!/bin/sh _REPOSITORY=ftp://open-projects.univ- mlv.fr/pub/FreeBSDftp://open-projects.univ- mlv.fr/pub/FreeBSD _PKG_PATH_REMOTE="$_REPOSITORY/5.3/All _PKG_LIST_FILE="pkg-list _PKG_LIST_PATH_LOCAL="/tmp/$_PKG_LIST_FILE _PKG_LIST_PATH_REMOTE="$_REPOSITORY/5.3/$_PK G_LIST_FILE _PKG_CLIENT_LIST_FILE="pkg_client.list _PKG_CLIENT_LIST_PATH_LOCAL="/tmp/$_PKG_CLIEN T_LIST_FILE _PKG_CLIENT_LIST_PATH_REMOTE="$_REPOSITORY/ labo-math/$_PKG_CLIENT_LIST_FILE"

pkg-install.sh echo "Starting script at:" `date` echo "Fetching repository package listing file echo " from $_PKG_LIST_PATH_REMOTE echo " to $_PKG_LIST_PATH_LOCAL echo fetch -v -o "$_PKG_LIST_PATH_LOCAL" "$_PKG_LIST_PATH_REMOTE echo "done echo "Fetching client package listing file echo " from $_PKG_CLIENT_LIST_PATH_REMOTE echo " to $_PKG_CLIENT_LIST_PATH_LOCAL echo fetch -v -o "$_PKG_CLIENT_LIST_PATH_LOCAL" "$_PKG_CLIENT_LIST_PATH_REMOTE echo "done awk -v PKG_LIST_PATH_LOCAL=$_PKG_LIST_PATH_LOCAL\ -v PKG_PATH_REMOTE="$_PKG_PATH_REMOTE" \

' function version(pkg) { cmd = "grep -e " pkg " " PKG_LIST_PATH_LOCAL cmd | getline _version close(cmd) return _version } function install(pkg) { cmd = "pkg_add "PKG_PATH_REMOTE"/"pkg".tbz system(cmd) } BEGIN { print "Begining packages installation } /^PKG_/ { split($0,pkg_name,"="); v=version(pkg_name[2]); print "Identified",pkg_name[1],"=",v install(v) } /^#/ { next } END { print "Ending packages installation } ' $_PKG_CLIENT_LIST_PATH_LOCAL echo "Ending script at:" `date`

pkg_client.list PKG_XORG="^xorg-[0-9.,_h]*$ PKG_KDE="^kde-[0-9.,_h]*$ PKG_GNOME="^gnome2-[0-9.,_h]*$ PKG_XFCE4="^xfce-[0-9.,_h]*$ PKG_TETEX="^teTeX-[0-9.,_h]*$ PKG_KILE="^kile-[0-9.,_h]*$ PKG_PROSPER="^prosper-[0-9.,_h]*$ PKG_OPENOFFICE="^openoffice-[0-9.,_h]*$ PKG_CVSUP="^cvsup-without-gui-[0-9.,_h]*$ PKG_PORTUPGRADE="^portupgrade-[0-9.,_h]*$ PKG_SCREEN="^screen-[0-9.,_h]*$ PKG_ENSCRIPT="^enscript-a4-[0-9.,_h]*$ PKG_VIM="^vim-[0-9.,_h]*$ PKG_XEMACS="^xemacs-[0-9.,_h]*$ PKG_THUNDERBIRD="^thunderbird-[0-9.,_h]*$ PKG_FIREFOX="^firefox-[0-9.,_h]*$ PKG_JAVA="^jdk-[0-9.,_p]*$ PKG_PLUGIN="^linuxpluginwrapper-[0-9.]*$ PKG_MTOOLS="^mtools-[0-9.]*$ PKG_NSSLDAP="^nss_ldap-[0-9.]*$ PKG_PAMLDAP="^pam_ldap-[0-9.]*$ PKG_SCILAB="^scilab-[0-9_.]*$"

pkg-list 3dm ,1 ImageMagick ORBit _2 ORBit OpenEXR Sablot WordNet-2.0 Xaw3d-1.5E_1 a2ps-a4-4.13b_3 aalib-1.4.r5_1 acroread-5.10_2,1 acroread amspsfnt-1.0_3 apache-ant-1.6.5_1 apr-nothr-db _1 arts-1.4.2,1 …

Client CVSup port-supfile *default host=open-projects.univ-mlv.fr *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress ports-all

Portupgrade On configure lusage de notre propre dépôt de packages dans /usr/local/etc/pkgtools.conf/usr/local/etc/pkgtools.conf... PKG_SITES = [ sprintf('ftp://open- projects.univ-mlv.fr/pub/FreeBSD/5.3/All') ]...