This TWIKI is current the standard for Research and GradPC images
*Note: The following two alternate documents are out as of date 16 Oct 2012
Note: 10May2012: Phil using these instructions for Grad Workstation Linux creation.
Updated 25 June 2013 Tested on 13.04, 12.04LTS - May have minor issue with 10.04 .. 11.10 with Multimedia only
Warning this ASSUMES you are setting up a clean install
25 June 2013 - ALWAYS get the latest files from ASIMOV
cscf-adm@asimov:/coregroup1/images/ubuntu-scripts
These are only for reference
* Syntax of BASH keywords or functions recognized as input for the updates2twiki program
pause[_no|__yes] message... - starts a documentation section - message is TWIKI title - optionally displayed in twiki if [ $? -eq 1 ] - optionally displayed in twiki then # === - starts or optionally terminates a documentation section # - SHELL comment - verbatim text - SHELL commands - verbatim else - optionally displayed in twiki # === - starts or optionally terminates a documentation section # - SHELL comment - verbatim text - SHELL commands - verbatim fi - optionally displayed in twiki END OF FILE - terminates all sections
pause[_no|__yes] message... displays message and waits for the user to type Y or N, Note Y=1, N=0 if [ $? -eq 1 ] then text - Yes section - SHELL commands else - optional text - NO section - SHELL commands fi
APT=/etc/apt/sources.list # The new mirror site we want to use MIRROR=mirror.cs.uwaterloo.ca # Update Apt Repository Sources to use the CS sponsered local mirror sed_file "s/..\.archive.ubuntu.com/$MIRROR/" "$APT" # Update Package list apt-get -y -q update >/dev/null 2>&1 apt-get -y -q install aptitude
apt-get -y purge network-manager-gnome network-manager-pptp network-manager-pptp-gnome echo skipping
echo After imaging eth0 can end up as a higher interface number echo So Make sure the first interface ends up as eth0 echo Note: Change will take effect after rebooting INTERFACES=/etc/network/interfaces ETH0=`ifconfig -a | grep "^eth0"` if [ -z "$ETH0" ] then echo "after reboot the main network will be eth0" rm -f /etc/udev/rules.d/70-persistent-net.rules fi echo Update $INTERFACES if needed ETH0=`grep "auto eth0" $INTERFACES >/dev/null` if [ -z "$ETH0" ] then echo $INTERFACES already set to DHCP on eth0 else echo "auto eth0" >>$INTERFACES echo "iface eth0 inet dhcp" >>$INTERFACES fi
# RT79425 # Trevor Grove OPTION="option domain-search code 119 = string;" # Note: dhclient.conf moves location between 10.04 and 11.04 # so we have to find it DHCONF=`find /etc -type f -name dhclient.conf` if [ -f "$DHCONF" ] then if grep "$OPTION" "$DHCONF" >/dev/null 2>&1 then echo "$OPTION - ALREADY EXISTS " else echo "$OPTION;" >> "$DHCONF" fi else echo "dhclient.conf file does not exist!" fi
# Phil Beldowski OPTION="allow-guest=false" LIGHTDM=/etc/lightdm/lightdm.conf if [ -f "$LIGHTDM" ] then if grep "$OPTION" "$LIGHTDM" >/dev/null 2>&1 then echo $OPTION - ALREADY EXISTS else echo "$OPTION" >> "$LIGHTDM" fi else echo "$LIGHTDM file does not exist!" fi
# Gordon Boerke OPTION="greeter-show-manual-login=true" LIGHTDM=/etc/lightdm/lightdm.conf if [ -f "$LIGHTDM" ] then if grep "$OPTION" "$LIGHTDM" >/dev/null 2>&1 then echo $OPTION - ALREADY EXISTS else echo "$OPTION" >> "$LIGHTDM" fi else echo "$LIGHTDM file does not exist!" fi
# Instal it sudo apt-get install unattended-upgrades # Enable it dpkg-reconfigure -plow unattended-upgrades --default-priority
# Corrected Aug 30 2012 add-apt-repository ppa:mozillateam/firefox-next add-apt-repository ppa:mozillateam/thunderbird-next apt-get -y -q update >/dev/null 2>&1
wget --no-check-certificate --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/`lsb_release -c -s`.list apt-get -y -q update >/dev/null 2>&1 apt-get -y -q --allow-unauthenticated install medibuntu-keyring apt-get -y -q update >/dev/null 2>&1 apt-get -y -q install app-install-data-medibuntu \ apport-hooks-medibuntu
add-apt-repository ppa:ubuntu-wine/ppa
add-apt-repository "deb http://archive.canonical.com/ `lsb_release -c -s` partner" apt-get -y -q update >/dev/null 2>&1
# This permits fixes that did not get in the release to # fix any issues in our install process later on in this script aptitude -q -y safe-upgrade
# This permits fixes that did not get in the release to # fix any issues in our install process later on in this script aptitude -q -y install debconf-utils
# This permits fixes that did not get in the release to # fix any issues in our install process later on in this script aptitude -q -y install etckeeper
# This permits fixes that did not get in the release to # fix any issues in our install process later on in this script aptitude -q -y install apt-rdepends
# This permits fixes that did not get in the release to # fix any issues in our install process later on in this script aptitude -q -y install apt-rdepends # Update its package list apt-file update
aptitude -y -q install ldap-utils ldapscripts ldapvi wget --no-check-certificate -q https://www.cs.uwaterloo.ca/twiki/pub/CF/UbuntuImageCreation/uwdir -O /usr/local/bin/uwdir chmod 755 /usr/local/bin/uwdir
# Note krb5-user also gets installed by Claytons script aptitude -y -q install krb5-user libpam-krb5 libnss-ldap libpam-foreground
# See: https://help.ubuntu.com/community/SSHFS # See: https://www.cs.uwaterloo.ca/twiki/view/CF/SshFs aptitude -q -y --with-recommends install openssh-server \ sshfs openssh-client openssl sshmenu-gnome hotssh
# Note: currently these ssh_known_hosts files are updated regularly three times per month. wget --no-check-certificate -q -O /etc/ssh/ssh_known_hosts \ https://www.cs.uwaterloo.ca/cscf/software/ssh/data/ssh_known_hosts wget --no-check-certificate -q -O /etc/ssh/ssh_known_hosts2 \ https://www.cs.uwaterloo.ca/cscf/software/ssh/data/ssh_known_hosts2
# If root does not have a .ssh folder yet - make it if [ ! -d /root/.ssh ] then mkdir -p /root/.ssh chmod 700 /root/.ssh fi # NOTE We got they key on 1 Feb 2012 from cscf.cs # Add cscf root PUBLIC key to the root authorized_keys2 file # TODO Might want to consider where to get this key SSHPUB=cscf-root-key.txt SSHKEYS=/root/.ssh/authorized_keys2 # Check if the key is already there if grep "`cat $SSHPUB`" $SSHKEYS >/dev/null then # echo has existing $SSHPUB in $SSHKEYS echo -n else echo appending $SSHPUB to $SSHKEYS cat $SSHPUB >> $SSHKEYS fi
echo Sun Java is not available via updates and should not be used # aptitude -y -q install sun-java6-bin sun-java6-jre sun-java6-plugin
aptitude -q -y --with-recommends install openjdk-6-jdk openjdk-6-jre \ java-common java-wrappers perl perl-base perl-modules perlmagick \ python tcl tk
aptitude -q -y --with-recommends install acroread \ acroread-common acroread-fonts # Non Existant # acroread-plugins acroread-fonts acroread-dictionary-en # acroread-l10n-en mozilla-acroread
#see CF.UbuntuEmail echo Leave unconfigured local mail only for now aptitude -q -y --with-recommends install bsdmainutils bsdutils postfix
# aptitude -q -y --with-recommends install msttcorefonts ttf-mscorefonts-installer ttf-liberation x-ttcidfont-conf echo we are haveing issues with MS fonts - so skipping install echo - the updater keeps asking to fix them but never works
aptitude -q -y --with-recommends install gnome
# recommends creats a conflict apt-get -q -y install wine # aptitude -q -y --with-recommends install wine
apt-get -y -q install ubuntu-restricted-extras
# See http://smashingweb.ge6.org/things-to-do-after-installing-ubuntu-12-04-for-perfect-desktop/ # DVD apt-get -q -y install libdvdread4 /usr/share/doc/libdvdread4/install-css.sh apt-get -q -y install libdvdcss2 libdvdcss-dev apt-get -q -y install mplayer mplayer-doc smplayer gnome-mplayer apt-get -q -y install audacious apt-get aptitude -q -y install clementine # VLC apt-get -q -y install vlc vlc-plugin-pulse # Audacity add-apt-repository ppa:audacity-team/daily apt-get -y -q update >/dev/null 2>&1 apt-get -q -y install audacity lame libmp3lame0 # Handbreak add-apt-repository ppa:stebbins/handbrake-snapshots apt-get -y -q update >/dev/null 2>&1 apt-get -q -y install handbrake-gtk handbrake-cli # XBMC add-apt-repository ppa:team-xbmc apt-get -y -q update >/dev/null 2>&1 apt-get -q -y install xbmc # Openshot Video Editor add-apt-repository ppa:jonoomph/openshot-edge apt-get -y -q update >/dev/null 2>&1 apt-get -q -y install openshot openshot-doc # GTKPOD apt-get -q -y install gtkpod # K3B - Blueray playing/burning apt-get -q -y install k3b # FFMpeg apt-get -q -y install libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2 # Gstreamer apt-get -q -y install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-dbus-media-service gstreamer-tools # TOTEM apt-get -q -y --with-recommends install \ totem totem-common totem-gstreamer totem-mozilla totem-plugins apt-get -q -y --with-recommends install \ aacgain aacplusenc alsa-firmware \ pulseaudio pulseaudio-module-zeroconf \ pulseaudio-utils mencoder \ realplayer
aptitude -q -y --with-recommends install chromium-browser firefox thunderbird \ chromium-codecs-ffmpeg-extra chromium-codecs-ffmpeg-nonfree \ ca-certificates ca-certificates-java
# or flashplugin-nonfree aptitude -q -y --with-recommends install flashplugin-installer
aptitude -q -y --with-recommends install googleearth-package
aptitude -q -y --with-recommends install xtightvncviewer xvnc4viewer # Not on laptops # vino vinagre xrdp
aptitude -q -y --with-recommends install cpudyn sensors-applet cpuburn \ fancontrol hdparm hwinfo laptop-detect lm-sensors lshw \ notification-daemon notify-osd notify-osd-icons pm-utils \ smartmontools testdisk sysstat iotop hardinfo
aptitude -q -y --with-recommends install build-essential fakeroot gdb \ make patch git rcs subversion subversion-tools
aptitude -q -y --with-recommends install ocaml ocaml-base ocaml-base-nox \ ocaml-compiler-libs ocaml-findlib ocaml-interp \ ocaml-native-compilers ocaml-nox ocaml-batteries-included \ ocaml-core ocaml-findlib-wizard ocaml-libs ocaml-mode \ ocaml-tools ocaml-ulex ocaml-ulex08 ocamldsort ocamlduce \ ocamlduce-base ocamlgraph-editor ocamlmakefile ocamlviz \ ocamlwc ocamlweb ocaml-book-en ocaml-doc
aptitude -q -y --with-recommends install reiserfsprogs ntfs-3g ntfsprogs \ rsnapshot rsync lvm2 mtools smbclient smbfs fuse-utils \ dosfstools chkconfig debsums diffutils findutils lsof # For fuse users how what to access their sshfs share when becoming root # Add /etc/fuse.conf and uncomment user_allow_other if ! grep user_allow_other /etc/fuse.conf >/dev/null 2>&1 then echo user_allow_other >>/etc/fuse.conf fi
aptitude -q -y --with-recommends install f-spot gimp gimp-data gimp-help-common \ gimp-help-en gscan2pdf imagemagick sane sane-utils transfig xsane \ xsane-common unpaper
aptitude -q -y --with-recommends install dvd+rw-tools brasero brasero-common \ cdparanoia cdrdao dvd+rw-tools
aptitude -q -y --with-recommends install usb-creator-common \ usb-creator-gtk usbmuxd
aptitude -q -y --with-recommends install bzip2 gzip bzip2 gzip \ p7zip-full p7zip-rar unzip zip cpio tar cabextract
aptitude -q -y --with-recommends install vuze tracker tracker-search-tool \ transmission-common transmission-gtk
aptitude -q -y --with-recommends install \ libopencore-amrnb-dev libopencore-amrnb0 libopencore-amrnb0-dbg \ libopencore-amrwb-dev libopencore-amrwb0 libopencore-amrwb0-dbg
if compare_ge $RELEASENO 11.10 then aptitude -q -y --with-recommends install espeak else aptitude -q -y --with-recommends install \ speech-dispatcher brltty-speechd cl-speech-dispatcher \ gnome-speech-swift libgnome-speech-dev libgnome-speech7 \ speech-dispatcher-festival speech-dispatcher-flite \ speech-tools speech-tools-doc speechd-el fi # =================================================================== pause_yes Voip if [ $? -eq 1 ] then echo gizmo5 may not exist - ignore the error aptitude -q -y --with-recommends install gizmo5 skype fi
aptitude -q -y --with-recommends install dc bc units mathpiper \ apcalc apcalc-common apcalc-dev calcoo extcalc python-mpmath \ python-mpmath-doc rpncalc
aptitude -q -y --with-recommends install mysql-client sqlite sqlite3
# PDF utils aptitude -q -y --with-recommends install evince pdfedit gscan2pdf \ pdf2djvu pdf2svg pdfchain pdfcube pdfgrep pdfjam pdfmod \ pdfposter pdfsam pdfshuffler pdftk pod2pdf qpdf # XPDF breaks cups # xpdf xpdf-common xpdf-reader xpdf-utils
# Install Office - depending on version RELEASENO=`lsb_release -rs` if compare_ge $RELEASENO 10.04 then echo Installing LibreOffice # 13.04 or greater ? if compare_ge $RELEASENO 13.04 then aptitude -q -y --with-recommends install \ libreoffice-base \ libreoffice-base-core \ libreoffice-calc \ libreoffice-common \ libreoffice-core \ libreoffice-dbg \ libreoffice-dev \ libreoffice-dev-doc \ libreoffice-draw \ libreoffice-gnome \ libreoffice-gtk \ libreoffice-help-en-us \ libreoffice-help-fr \ libreoffice-impress \ libreoffice-java-common \ libreoffice-l10n-en-gb \ libreoffice-l10n-fr \ libreoffice-math \ libreoffice-nlpsolver \ libreoffice-officebean \ libreoffice-ogltrans \ libreoffice-pdfimport \ libreoffice-presentation-minimizer \ libreoffice-style-human \ libreoffice-style-tango \ libreoffice-writer \ browser-plugin-libreoffice \ docvert-libreoffice \ libreoffice \ libreoffice-dmaths \ libreoffice-emailmerge \ libreoffice-filter-mobiledev \ libreoffice-gtk3 \ libreoffice-kde \ libreoffice-librelogo \ libreoffice-lightproof-en \ libreoffice-mysql-connector \ libreoffice-presenter-console \ libreoffice-report-builder \ libreoffice-report-builder-bin \ libreoffice-script-provider-bsh \ libreoffice-script-provider-js \ libreoffice-script-provider-python \ libreoffice-sdbc-postgresql \ libreoffice-style-crystal \ libreoffice-style-galaxy \ libreoffice-style-hicontrast \ libreoffice-style-oxygen \ libreoffice-subsequentcheckbase \ libreoffice-templates \ libreoffice-wiki-publisher \ libreoffice-writer2latex \ libreoffice-writer2xhtml \ libreoffice-zemberek \ openclipart-libreoffice \ openclipart2-libreoffice \ else aptitude -q -y --with-recommends install libreoffice \ libreoffice-writer2latex libreoffice-writer2xhtml \ libreoffice-pdfimport libreoffice-wiki-publisher \ libreoffice-emailmerge libreoffice-evolution \ libreoffice-java-common libreoffice-filter-mobiledev \ libreoffice-mysql-connector libreoffice-sdbc-postgresql fi else echo Installing OpenOffice aptitude -q -y --with-recommends install openoffice,org \ openoffice.org-writer2latex openoffice.org-writer2xhtml \ openoffice.org-pdfimport openoffice.org-wiki-publisher \ openoffice.org-emailmerge openoffice.org-evolution \ openoffice.org-java-common \ openoffice.org-filter-mobiledev \ openoffice.org-mysql-connector openoffice.org-sdbc-postgresql fi
aptitude -q -y --with-recommends install gedit gedit-common \ gedit-dev gedit-developer-plugins gedit-latex-plugin gedit-plugins
aptitude -q -y --with-recommends install emacs23 \ emacs23-bin-common emacs23-common emacs23-el
aptitude -q -y --with-recommends install vim vim-common vim-dbg \ vim-doc vim-gnome vim-gui-common vim-runtime vim-tiny \ vim-addon-manager vim-gtk vim-latexsuite \ vim-nox vim-rails vim-scripts vim-syntax-gtk vim-vimoutliner vim-puppet
aptitude -q -y --with-recommends install groff-base less nano tomboy
aptitude -q -y --with-recommends install ghostscript gv ps2eps antiword
aptitude -q -y --with-recommends install aspell aspell-en dictionaries-common
aptitude -q -y --with-recommends install acct adduser
aptitude -q -y --with-recommends install gnupg
if compare_ge $RELEASENO 13.04 then aptitude -q -y --with-recommends install \ texlive \ texlive-base \ texlive-bibtex-extra \ texlive-binaries \ texlive-common \ texlive-doc-base \ texlive-extra-utils \ texlive-font-utils \ texlive-fonts-extra-doc \ texlive-fonts-recommended \ texlive-fonts-recommended-doc \ texlive-generic-recommended \ texlive-humanities-doc \ texlive-lang-german \ texlive-latex-base \ texlive-latex-base-doc \ texlive-latex-extra \ texlive-latex-extra-doc \ texlive-latex-recommended \ texlive-latex-recommended-doc \ texlive-luatex \ texlive-math-extra \ texlive-metapost-doc \ texlive-pictures \ texlive-pictures-doc \ texlive-pstricks \ texlive-pstricks-doc \ texlive-publishers-doc \ texlive-science-doc \ texlive-doc-base \ texlive-doc-en \ texlive-doc-fr \ texlive-fonts-extra \ texlive-formats-extra \ texlive-full \ texlive-games \ texlive-generic-extra \ texlive-humanities \ texlive-lang-all \ texlive-latex3 \ texlive-metapost \ texlive-music \ texlive-omega \ texlive-plain-extra \ texlive-publishers \ texlive-science \ texlive-xetex \ context mathtex biblatex biblatex-dw latex-make latex-mk \ latex2html latex2rtf latex2rtf-doc latexdiff latexdraw \ writer2latex writer2latex-manual \ texpower texpower-manual texpower-examples \ auctex \ dblatex \ doxygen-latex \ latex-beamer \ latex-xcolor \ latex2html \ linuxdoc-tools-latex \ preview-latex-style \ biblatex \ biblatex-dw \ c++-annotations-latex \ csv2latex \ cweb-latex \ fcitx-table-latex \ geany-plugin-latex \ gedit-latex-plugin \ gnuhtml2latex \ ibus-table-latex \ klatexformula \ latex-fonts-sipa-arundina \ latex-fonts-thai-tlwg \ latex-make \ latex-mk \ latex2rtf \ latex2rtf-doc \ latexdiff \ latexdraw \ latexila \ latexila-data \ latexmk \ latexml \ libjlatexmath-fop-java \ libjlatexmath-java \ libjlatexmath-java-doc \ libklatexformula3 \ libklatexformula3-dev \ liblatex-decode-perl \ liblatex-driver-perl \ liblatex-encode-perl \ liblatex-table-perl \ liblatex-tom-perl \ libtemplate-plugin-latex-perl \ libwriter2latex-java \ libwriter2latex-java-doc \ pidgin-latex \ r-base-core \ rcs-latex \ tomboy-latex \ vim-latexsuite \ writer2latex \ writer2latex-manual else aptitude -q -y --with-recommends install \ texlive texlive-base texlive-bibtex-extra texlive-common \ texlive-doc-base texlive-doc-en texlive-doc-fr texlive-extra-utils \ texlive-font-utils texlive-fonts-extra texlive-fonts-extra-doc \ texlive-fonts-recommended texlive-fonts-recommended-doc \ texlive-generic-recommended texlive-humanities-doc \ texlive-lang-all texlive-latex-base texlive-latex-base-doc \ texlive-latex-extra texlive-latex-extra-doc \ texlive-latex-recommended texlive-latex-recommended-doc \ texlive-luatex texlive-math-extra texlive-metapost-doc \ texlive-pictures texlive-pictures-doc texlive-pstricks \ texlive-pstricks-doc texlive-publishers \ texlive-publishers-doc texlive-science texlive-science-doc \ texlive-formats-extra texlive-full texlive-games \ texlive-generic-extra texlive-humanities texlive-latex3 \ texlive-metapost texlive-music texlive-omega texlive-plain-extra \ texlive-xetex texlive-binaries latex-beamer \ biblatex biblatex-dw latex-make latex-mk \ latex2html latex2rtf latex2rtf-doc latexdiff latexdraw \ writer2latex writer2latex-manual \ texpower texpower-manual texpower-examples \ context \ mathtex fi
aptitude -q -y --with-recommends install ncurses-base ncurses-bin
aptitude -q -y --with-recommends install virtualbox
aptitude -y -q purge telnet rsh-server rsh-client
aptitude -q -y --with-recommends install bash dash csh ksh tcsh zsh zsh-doc
mkdir /xhbin ln -s /bin/bash /xhbin ln -s /bin/dash /xhbin ln -s /bin/csh /xhbin ln -s /bin/ksh /xhbin ln -s /bin/sh /xhbin ln -s /bin/tcsh /xhbin ln -s /bin/zsh /xhbin # LDAP login needs this ln -s /bin/false /xhbin
# Make sure the NTP package is installed on your host backup /etc/ntp.conf aptitude -q -y --with-recommends install ntp ntpdate # Install the CSCF ntp.conf file (if you're on the UW campus network): # sudo wget https://www.cs.uwaterloo.ca/cscf/software/ntp/etc/ntp.conf -O /etc/ntp.conf wget -q --no-check-certificate https://www.cs.uwaterloo.ca/cscf/software/ntp/etc/ntp.conf -O /etc/ntp.conf # Restart ntp: /etc/init.d/ntp restart # You can check that it is working with: ntpq -p
# Backup snmp files only once backup /etc/snmp/snmp.conf backup /etc/default/snmpd aptitude -q -y --with-recommends install snmpd # Install the CSCF SNMP configuration files: wget --no-check-certificate -q https://www.cs.uwaterloo.ca/cscf/software/snmp/etc/snmp/snmpd.conf -O /etc/snmp/snmpd.conf wget --no-check-certificate -q https://www.cs.uwaterloo.ca/cscf/software/snmp/etc/default/snmpd -O /etc/default/snmpd # Restart SNMP # You will get a "warning/error" "Bad group id: snmp" until after the host is added to the AD domain. /etc/init.d/snmpd restart
aptitude -q -y --with-recommends install nscd
# We don't want clear text passwords being used for network connections aptitude -y -q purge telnet rsh-server rsh-client
# 13.04 or greater ? if compare_ge $RELEASENO 13.04 then # 13.04 used cups-browsed to poll servers # update /etc/cups/cups-browsed.conf aptitude install --with-recommends cups-daemon cups-client cups-browsed cups aptitude install --with-recommends bluez-cups cups-bsd cups-common cups-driver-gutenprint \ cups-filters cups-pdf cups-ppdc cups-pk-helper ghostscript-cups \ printer-driver-gutenprint printer-driver-hpcups printer-driver-postscript-hp \ python-cups python-cupshelpers wget --no-check-certificate -q https://www.cs.uwaterloo.ca/twiki/pub/CF/UbuntuImageCreation/cups-browsed.conf -O /etc/cups/cups-browsed.conf service cups-browsed restart # =================================================================== else aptitude -q -y --with-recommends install cups cups-pdf # backup cupsd.conf only once backup /etc/cups/cupsd.conf wget --no-check-certificate -q https://www.cs.uwaterloo.ca/twiki/pub/CF/UbuntuImageCreation/cupsd.conf -O /etc/cups/cupsd.conf /etc/init.d/cups restart fi # Note - it will take some time to have the printers show up so we will move setting the # default to the end of the script
apt-get -y -q --install-recommends dist-upgrade
# Setup Samba with local Host only access apt-get -y -q install samba # Configure local samba with vmware access # backup smb.conf only once # If you want SAMBA to be available to external hosts update the *interfaces* line # to read: =interfaces = lo vmnet* eth*= if [ ! -f /etc/samba/smb.conf ] then backup /etc/samba/smb.conf wget --no-check-certificate -q https://www.cs.uwaterloo.ca/twiki/pub/CF/UbuntuImageCreation/smb.conf -O /etc/samba/smb.conf fi
for i in u u1 u2 u3 u4 u5 u6 u7 u8 u9 do if [ -L /$i ] then echo Symlink /$i exists ls -l /$i else if [ -d /$i ] then echo Directory /$i exists else ln -s /home /$i ls -l /$i fi fi done
PROG=fix_scheduler # Update script if needed rm -f /etc/$PROG wget --no-check-certificate -nd -nH -nc https://www.cs.uwaterloo.ca/twiki/pub/CF/UbuntuImageCreation/$PROG -O /etc/$PROG chmod 755 /etc/$PROG # Has rc.local been patched \? if grep "^/etc/$PROG" /etc/rc.local >/dev/null 2>&1 then echo /etc/rc.local already patched else echo Backup and Patch /etc/rc.local to add $PROG script backup /etc/rc.local sed_file "s;exit 0;/etc/$PROG;" /etc/rc.local echo "exit 0" >>/etc/rc.local fi echo skipping
echo We do not want any other packages that tamper with /etc/resolv.conf apt-get -y purge resolvconf
echo skipping echo the CS resolv.conf file is busted out of date, wrong # wget --no-check-certificate -q -O /tmp/resolv.conf https://www.cs.uwaterloo.ca/cscf/software/ubuntu/UW-CS-GradPC/etc/resolv.conf && mv -f /tmp/resolv.conf /etc/resolv.conf
rsync -a scripts/ /scripts echo Adding prototype crontab entry for system backup echo The entry is just a comment for now - please edit this echo See /scripts/README.txt for details backup /etc/crontab cat scripts/crontab >>/etc/crontab
cd "$HDIR" pushd lc make clean make install popd
# This will result in a harmless error when running under 11.04 # /usr/local/matlab/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found # find /lib | grep libc.so # /lib/x86_64-linux-gnu/libc.so.6 if [ ! -f /lib64/libc.so.6 ] then ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6 fi MATLAB=matlab-R2012a-x86_64.tar.gz try rsync -a $ROPT -e "ssh -S ${CM_PATH_E}" \ $CM_USER@$CM_HOST:/coregroup1/images/packages/$MATLAB \ /tmp cd / tar xzf /tmp/$MATLAB rm /tmp/$MATLAB
MAPLE=maple14-x64.tar.gz try rsync -a $ROPT -e "ssh -S ${CM_PATH_E}" \ $CM_USER@$CM_HOST:/coregroup1/images/packages/$MAPLE \ /tmp cd / tar xzf /tmp/$MAPLE rm /tmp/$MAPLE
# Set the default printer last to give time for the printer list to update lpadmin -d lj_csgrad
# Show shared printers on the local network. Browsing On BrowseOrder allow,deny BrowseAllow all BrowseAddress @LOCAL BrowsePoll print.cs.uwaterloo.ca BrowseInterval 3600 BrowseTimeout 3700
service svn { disable = no port = 3690 socket_type = stream protocol = tcp wait = no type = UNLISTED user = root server = /usr/bin/svnserve server_args = -d #server_args = -i -r /myrepo }
After copying the passwords from an old machine some don't work - this is the fix
*Continue to Ubuntu Release Specific Section Below*</verbatim></verbatim>I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
![]() |
Makefile | r4 r3 r2 r1 | manage | 0.3 K | 2013-06-25 - 11:58 | MikeGore | Make file for updates2twiki and twiki.txt |
![]() |
common | r11 r10 r9 r8 r7 | manage | 15.1 K | 2013-06-25 - 11:57 | MikeGore | common |
![]() |
cups-browsed.conf | r2 r1 | manage | 1.0 K | 2015-11-13 - 10:39 | MikeGore | cups-browsed.conf does browse poll functions now |
![]() |
cupsd.conf | r1 | manage | 1.8 K | 2010-11-17 - 09:47 | MikeGore | Ubuntu 10.04 cupsd.conf file modified for CS |
![]() |
fix_scheduler | r3 r2 r1 | manage | 2.0 K | 2012-01-20 - 12:14 | MikeGore | Script to update the disk scheduler settings |
![]() |
packages | r1 | manage | 74.9 K | 2009-08-17 - 15:36 | MikeGore | 9.04 Packages after cscf additions |
![]() |
smb.conf | r1 | manage | 11.0 K | 2010-02-05 - 14:26 | MikeGore | smb.conf |
![]() |
twiki.txt | r15 r14 r13 r12 r11 | manage | 28.8 K | 2013-11-28 - 20:38 | MikeGore | twiki docs from updates script |
![]() |
ubuntu10_04.txt | r3 r2 r1 | manage | 38.7 K | 2010-11-26 - 11:18 | MikeGore | |
![]() |
updates | r19 r18 r17 r16 r15 | manage | 38.2 K | 2013-06-25 - 11:56 | MikeGore | twiki docs from updates script |
![]() |
updates2twiki.c | r9 r8 r7 r6 r5 | manage | 4.8 K | 2013-06-25 - 11:59 | MikeGore | updates2twiki.c |
![]() |
uwdir | r2 r1 | manage | 10.8 K | 2012-05-10 - 12:05 | MikeGore | uwdir script |