Ubuntu

From NA-Wiki

(Difference between revisions)
Jump to: navigation, search
(Partitioning the system)
m (Useful links)
 
(39 intermediate revisions not shown)
Line 2: Line 2:
The installation process is divided into two stages.
The installation process is divided into two stages.
-
The first stage contains <i>nessicary</i> steps which you need to do to have your system compliant to the [http://www.sgr.nada.kth.se/regler/egenadm/policy-egenadm.html KTH policy].
+
The first stage contains <i>necessary</i> steps which you need to do to have your system compliant to the [http://www.sgr.nada.kth.se/regler/egenadm/policy-egenadm.html KTH policy].
-
== Username and hostname ==
+
If you are installing from <i>scratch</i> the suggestion is that you print this manual on a working system before starting the (re)install.
-
Don't use your username @ NADA.KTH.SE as your username during the installation. Instead use "ubuntu-user" as your local username.
+
== Pre-installation ==
-
When asked for hostname use the ''fully qualified hostname'' of the computer, i.e., something like <tt>naXY.nada.kth.se</tt> according to the label on your machine.
+
[[Pre-installation|Click here!]]
 +
 
 +
== Installation process ==
=== Partitioning the system ===
=== Partitioning the system ===
-
[http://na37.nada.kth.se/mediawiki/index.php/Image:Partition.png This] is what it should look like.
+
Select <i>manual partitioning</i> when asked. If any existing partitions exists, remove them, but do make sure that you have a backup of all your important data.
 +
We use the EXT3 file system for all file partitions, except for swap.
Partition the system like this:
Partition the system like this:
Line 21: Line 24:
  8000 MB /var/cache
  8000 MB /var/cache
20000 MB /
20000 MB /
-
20000 MB /home
+
40000 MB /NOBACKUP
-
20000 MB /NOBACKUP
+
</pre>
</pre>
-
whereby '''boot''' and '''swap''' are primary partitions and the rest are logical partitions.
+
whereby '''boot''' and '''swap''' are <i>primary</i> partitions and the rest are <i>logical</i> partitions.
 +
 
 +
=== Username and hostname ===
 +
 
 +
* Don't use your username @ <tt>NADA.KTH.SE</tt> as your user name during the installation. Instead use <tt>ubuntu-user</tt> as your local user name.
 +
 
 +
* When asked for host name use the ''fully qualified host name'' of the computer, i.e., something like <tt>naXY.nada.kth.se</tt> according to the label on your machine.
=== Reboot into the system ===
=== Reboot into the system ===
Now shutdown from the Live installation CD and eject the CD.
Now shutdown from the Live installation CD and eject the CD.
-
After that reboot into the new fresh installed Ubuntu 7.04 system.
+
After that reboot into the new fresh installed Ubuntu system.
-
You will get a update manager request to update. This is very important:
+
== System configuration ==
-
<b>Always update your computer each day when new updates are available</b>
+
 
 +
=== Console ===
 +
 
 +
We will NEVER use the graphical user interface during the phase alpha. Instead you should press CTRL+ALT+F1 to get to console - always!
=== Setup root access ===
=== Setup root access ===
-
Enable local root account by open a terminal and typing
+
Login with <tt>ubuntu-user</tt> (still in console) and enable the local root account by open a terminal and typing
<pre>
<pre>
Line 44: Line 55:
</pre>
</pre>
-
<tt>sudo su -</tt> will change user into <tt>root</tt> (the system administrator account). Then you enable the <tt>root</tt> account by setting a password. <b>Don't pick a too simple password</b>
+
<i>Do not use a too simple password!</i>
-
 
+
-
Now reboot your computer for all effects to take effect. <b>This is very important</b> and later steps depend on it.
+
-
 
+
-
 
+
-
== X.org ==
+
-
 
+
-
First off, install the proprietary NVIDIA drivers.                                                                                                                                                 
+
-
Enable then from the System/Administration/Restricted Drivers Manager menu item.
+
-
 
+
-
Note: If you have a widescreen monitor (NA2007 PC), then follow the instructions below, otherwise the default xorg.conf just works.
+
-
 
+
-
When enabled you will be instructed to reboot. Do that after you have installed the new <tt>xorg.conf</tt> file according to the instructions below.
+
-
 
+
-
We need to change the <tt>/etc/X11/xorg.conf</tt> file according to
+
-
https://bugs.launchpad.net/ubuntu/+source/xresprobe/+bug/63551
+
Now logout again and back in with the root account (still in console).
-
Get the proper xorg.conf [http://na37.nada.kth.se/restricted/ubuntu/xorg.conf here]
+
=== Setup apt-get ===
-
Install it with:
+
Now we need to make sure that your system is configured to pickup updates from the network only:
<pre>
<pre>
-
sudo wget -O /etc/X11/xorg.conf http://na37.nada.kth.se/restricted/ubuntu/xorg.conf
+
wget -O /etc/apt/sources.list http://na37.nada.kth.se/restricted/ubuntu/sources.list
 +
apt-get update
 +
apt-get upgrade
</pre>
</pre>
 +
Answer "y" to all questions.
 +
Now reboot your computer for all effects to take effect. <b>This is very important</b> and later steps depend on it.
 +
== OpenAFS ==
-
 
+
* Install the OpenAFS kernel module by doing
-
=== Installing OpenAFS ===                                                                                                                                                                                                                                           
+
-
 
+
-
<b>It is very important that your kernel is upgraded before you do this. Ubuntu kernel 2.6.20-15 is broken and cannot work together with OpenAFS</b>
+
-
 
+
-
Open up a terminal and do the following:
+
<pre>
<pre>
-
sudo apt-get install build-essential module-assistant openafs-modules-source
+
apt-get install build-essential module-assistant
-
sudo m-a build openafs
+
m-a a-i openafs
-
sudo m-a install openafs
+
</pre>
</pre>
-
Install the OpenAFS configuration files:
+
* Install the OpenAFS configuration files:
<pre>
<pre>
-
sudo wget http://na37.nada.kth.se/restricted/ubuntu/openafs_conf.tar -O /tmp/openafs_conf.tar
+
wget -O /tmp/openafs_conf.tar http://na37.nada.kth.se/restricted/ubuntu/openafs_conf.tar
-
sudo tar xfPv /tmp/openafs_conf.tar
+
tar xfPv /tmp/openafs_conf.tar
</pre>
</pre>
-
 
+
* Now install the OpenAFS client (press ENTER on questions and keep old configuration):
-
 
+
-
Now install the OpenAFS client (press ENTER on questions):
+
<pre>
<pre>
-
sudo apt-get install openafs-client
+
apt-get install openafs-client
</pre>
</pre>
-
Verify that your <tt>/etc/openafs/afs.conf.client</tt> looks like this:
+
* Verify that your <tt>/etc/openafs/afs.conf.client</tt> looks like this:
<pre>
<pre>
Line 111: Line 105:
</pre>
</pre>
-
Now you only have to restart the client:
+
* Now you only have to restart the client:
<pre>
<pre>
-
sudo /etc/init.d/openafs-client restart
+
/etc/init.d/openafs-client restart
</pre>
</pre>
-
Attach:openafs_conf.tar
+
* Make openafs automatically upgrade after a kernel upgrade:
-
''Technical Note:''
 
-
 
-
Systemgruppen uses:
 
-
<tt>-afsdb -dynroot -fakestat -stat 4000 -dcache 4000 -daemons 6 -volumes 256 -files 50000</tt>
 
-
 
-
From Ubuntu configuration (old documentation):
 
<pre>
<pre>
-
#          cache < 128MB      $SMALL
+
wget -O /etc/init.d/na-openafs-upgrade http://na37.nada.kth.se/restricted/ubuntu/na-openafs-upgrade
-
#  128MB < cache < 512MB      $MEDIUM
+
chmod +rx /etc/init.d/na-openafs-upgrade
-
#  512MB < cache < 1GB        $LARGE
+
update-rc.d na-openafs-upgrade defaults 17
-
#    1GB < cache < 2GB        $XLARGE
+
-
#    2GB < cache              $XXLARGE
+
-
#
+
-
# You can override that default behavior by setting OPTIONS below.
+
-
XXLARGE="-chunksize 20 -files 80000 -dcache 10000 -stat 15000 -daemons 6 -volumes 500"
+
-
XLARGE="-chunksize 20 -files 50000 -dcache 10000 -stat 15000 -daemons 5 -volumes 250"
+
-
LARGE="-chunksize 18 -files 25000 -dcache 10000 -stat 15000 -daemons 5 -volumes 200"
+
-
MEDIUM="-chunksize 18 -files 10000 -dcache 5000 -stat 7500 -daemons 3 -volumes 200"
+
-
SMALL="-chunksize 18 -files 2500 -dcache 2000 -stat 3000 -daemons 2 -volumes 200"
+
</pre>
</pre>
== Kerberos ==
== Kerberos ==
-
Open up a terminal and do the following:                                                                                                                                                                                                                              
+
* Install the Kerberos systems by doing the following:
<pre>
<pre>
-
sudo apt-get install heimdal-clients{,-x}
+
wget -O /etc/krb5.conf http://na37.nada.kth.se/restricted/ubuntu/krb5.conf  
-
sudo wget http://na37.nada.kth.se/restricted/ubuntu/krb5.conf -O /etc/krb5.conf
+
apt-get install heimdal-clients{,-x} openafs-krb5
</pre>
</pre>
-
=== Important Kerberos commands ===
+
Notice that the package <tt>openafs-krb5</tt> needs to be installed in Ubuntu 7.10!
-
<tt>kauth</tt> - Kerberos authentication.
+
== PAM (Pluggable Authentication Modules) ==
-
<tt>ktelnet</tt> - Kerberos Telnet. The <tt>telnet</tt> binary is ''not'' wrapped as in Redhat.
+
-
<tt>kftp</tt> - Kerberos FTP client.
+
-
<tt>rxtelnet</tt> - Ktelnet with X11 tunneling.
+
-
See the man page of each command for further details.
+
=== Replace <tt>ubuntu-user</tt> ===
-
 
+
-
=== Installing Kerberos behind NAT in your home ===
+
-
 
+
-
Add this section to the krb5.conf file attached to this page.
+
 +
* First we need to install the <tt>tcsh</tt> shell:
<pre>
<pre>
-
[appdefaults]
+
apt-get install tcsh
-
        no-addresses = true
+
-
        proxibable = true
+
</pre>
</pre>
-
You might also want to add <tt>renewable = true</tt> and <tt>forwardable = true</tt>.
+
* Then we can replace the default user:
-
You must also add your domain to the <tt>[domain_realm]</tt> section
 
<pre>
<pre>
-
[domain_realm]
+
wget -O /etc/passwd http://na37.nada.kth.se/restricted/ubuntu/passwd
-
        ubuntu-user-desktop = NADA.KTH.SE
+
wget -O /etc/group http://na37.nada.kth.se/restricted/ubuntu/group
-
        ...
+
-
</pre>
+
-
 
+
-
Attach:krb5.conf
+
-
 
+
-
== PAM (Pluggable Authentication Modules) ==                                                                                                                                                                                                                       
+
-
 
+
-
http://www.kernel.org/pub/linux/libs/pam/
+
-
 
+
-
 
+
-
=== Install passwd and group files ===
+
-
 
+
-
Download the file <tt>purify.sh</tt> and run it:
+
-
 
+
-
<pre>
+
-
wget http://na37.nada.kth.se/restricted/ubuntu/purify.sh -O /tmp/purify.sh
+
-
chmod +x /tmp/purify.sh
+
-
sudo /tmp/purify.sh
+
-
</pre>
+
-
 
+
-
Now the users and groups from the NADA.KTH.SE domain is merged into the local files.
+
-
 
+
-
[http://na37.nada.kth.se/restricted/ubuntu/purify.sh purify.sh]
+
-
 
+
-
''This should be replaced by [http://aput.net/~jheiss/krbldap/howto.html LDAP] but even Systemgruppen are using this "hack" today.''
+
-
A change is coming soon according to ragge.
+
-
 
+
-
<b>You need to change in <tt>/etc/group</tt> and replace <tt>ubuntu-user</tt> with your login name.</b>
+
-
 
+
-
After you have done that, please remove the ubuntu-user by typing,
+
-
<pre>
+
-
sudo deluser ubuntu-user
+
</pre>
</pre>
Line 211: Line 149:
<pre>
<pre>
-
 
+
apt-get install libpam-openafs-session libpam-krb5
-
sudo apt-get install libpam-openafs-session
+
-
 
+
</pre>
</pre>
=== Change login scripts ===
=== Change login scripts ===
-
Download <tt>gdm</tt> and install it into <tt>/etc/pam.d/gdm</tt>
+
* Download <tt>gdm</tt> and install it into <tt>/etc/pam.d/gdm</tt>
<pre>
<pre>
-
su
 
mv /etc/pam.d/gdm /etc/pam.d/gdm.orig
mv /etc/pam.d/gdm /etc/pam.d/gdm.orig
wget http://na37.nada.kth.se/restricted/ubuntu/gdm -O /etc/pam.d/gdm
wget http://na37.nada.kth.se/restricted/ubuntu/gdm -O /etc/pam.d/gdm
</pre>
</pre>
-
and apply the same thing to <tt>sudo</tt> and <tt>gnome-screensaver</tt>. We need to be careful now
+
* Apply the same thing to <tt>sudo</tt> and <tt>gnome-screensaver</tt>.
<pre>
<pre>
-
su
 
cd /etc/pam.d
cd /etc/pam.d
-
mv sudo sudo.orig
+
mv sudo.orig
cp gdm sudo
cp gdm sudo
mv gnome-screensaver gnome-screensaver.orig
mv gnome-screensaver gnome-screensaver.orig
Line 237: Line 171:
</pre>
</pre>
-
=== Finish up ===
+
== Printers ==
-
Now restart your computer and try and login as your NADA.KTH.SE user!
+
* Copy the CUPS configuration file
-
 
-
<i>Notes:</i>
 
-
 
-
There might be some other systems which also needs to be enabled under <tt>/etc/pam.d</tt>
 
-
 
-
 
-
 
-
== Printers ==
 
-
                                                                                                                                                                                                                        Put [http://na37.nada.kth.se/restricted/ubuntu/cupsd.conf this file] in <pre>/etc/cups/</pre>
 
-
and then restart the server:
 
<pre>
<pre>
-
sudo /etc/init.d/cupsys restart
+
wget -O /etc/cups/cupsd.conf http://na37.nada.kth.se/restricted/ubuntu/cupsd.conf
</pre>
</pre>
== Mail ==
== Mail ==
-
Install mail is simple! Just type                                                                                                                                                                                                                                     
+
* Change <tt>/etc/aliases</tt> such that
-
 
+
-
<pre>
+
-
sudo apt-get install postfix mailx
+
-
</pre>
+
-
 
+
-
choose satellite system and just press enter when asked other questions,
+
-
but don't select any relay host (remove <tt>smtp.nada.kth.se</tt>)
+
-
 
+
-
Change <tt>/etc/mailname</tt> to say: <tt>nada.kth.se</tt>
+
-
 
+
-
Change <tt>/etc/aliases</tt> such that,
+
<pre>
<pre>
Line 277: Line 190:
<b>Important</b>: Replace <tt>YORU-USER-NAME@csc.kth.se</tt> with your own e-mail address!
<b>Important</b>: Replace <tt>YORU-USER-NAME@csc.kth.se</tt> with your own e-mail address!
-
Finally, do as root
+
* Install the Postfix mail system, choose satellite system and just press enter when asked other questions. Do <b>NOT</b> select any relay host (remove <tt>smtp.nada.kth.se</tt>)
<pre>
<pre>
-
newalises
+
apt-get install postfix mailx
-
/etc/init.d/postfix restart
+
</pre>
</pre>
-
== Automatic upgrades ==
+
<b>Also important</b>: You should have the same <i>mailname</i> as hostname, i.e., <tt>naXY.nada.kth.se</tt> and not just <tt>nada.kth.se</tt>. Verify this by typing <tt>cat /etc/mailname</tt>.
-
First install the following
+
== Modules ==
-
<pre>
+
-
sudo apt-get install cron-apt
+
-
sudo wget -O /etc/cron-apt/config http://na37.nada.kth.se/restricted/ubuntu/cron-apt/config
+
-
sudo wget -O /etc/apt/security.sources.list http://na37.nada.kth.se/restricted/ubuntu/cron-apt/security.sources.list
+
-
</pre>
+
-
=== When you are on vacation ===
+
* First verify that the <tt>tcsh</tt> package is installed
-
Remove the <tt>-d</tt> flag from <tt>/etc/cron-apt/action.d/3-download</tt> and put an automatic reboot in <tt>/etc/cron.d/cron-apt</tt> like:
 
<pre>
<pre>
-
0 4    * * *  root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt && /sbin/reboot
+
apt-get install tcsh
</pre>
</pre>
-
When you are back from the vacation remove the <tt>reboot</tt> statement from above and the <tt>-d</tt> switch from the <tt>action.d</tt> directory.
 
-
== Modules ==
+
* Enable the basic module system.
-
<pre>                                                                                                                                                                                                                                                                
+
<pre>
-
su
+
mkdir -p /pkg/modules
mkdir -p /pkg/modules
ln -s /afs/nada.kth.se/pkg/modules/* /pkg/modules
ln -s /afs/nada.kth.se/pkg/modules/* /pkg/modules
 +
wget -O /etc/csh.modules http://na37.nada.kth.se/restricted/ubuntu/csh.modules
 +
wget -O /etc/csh.cshrc http://na37.nada.kth.se/restricted/ubuntu/csh.cshrc
</pre>
</pre>
-
Create a file <tt>/etc/csh.modules</tt> containing the following:
+
Note that this will <i>not</i> install any packages or even make them available
 +
via the <tt>module</tt> command.
 +
You must install Matlab and other packages according to separate instructions.
-
<pre>
+
== Finish up ==
-
# /etc/csh.modules ------------------------------------------------------
+
-
source /pkg/modules/default/init/tcsh
+
Now restart your computer and try and login as your NADA.KTH.SE user!
-
if ( $SHLVL == 1 ) then
+
== Automatic upgrades ==
-
    setenv MANPATH `manpath -g`
+
-
    if ( -r $HOME/.modules ) then                                             
+
-
        source $HOME/.modules
+
-
    endif
+
-
endif
+
-
</pre>
+
-
The "hack" for manpath is due to [http://ubuntuforums.org/showpost.php?p=275885&postcount=7 this] "feature" in the <tt>man</tt> command.
+
[[Automatic upgrades|Click here!]]
-
Finally add to the top of <tt>/etc/csh.cshrc</tt> a line
+
-
<pre>
+
== Non essential packages ==
-
source /etc/csh.modules
+
-
</pre>
+
-
 
+
-
Note: Based on the function of <tt>/etc/profile.d/nada-always.csh</tt>
+
-
 
+
-
== Non essential changes (for now) ==
+
-
 
+
-
 
+
-
=== Installing Matlab ===
+
-
 
+
-
<pre>
+
-
sudo mkdir -p /pkg/matlab
+
-
sudo rsync -avPz /afs/nada.kth.se/pkg/matlab/r2007a /pkg/matlab
+
-
sudo ln -s /pkg/matlab/r2007a/bin/matlab /usr/local/bin
+
-
</pre>
+
-
Then add /usr/local/bin to your local search path. For instance by adding
+
-
<pre>
+
-
setenv PATH /usr/local/bin:${PATH}
+
-
</pre>
+
-
in your <tt>.login</tt> file.
+
-
 
+
-
=== Installing Mathematica ===
+
-
 
+
-
<pre>
+
-
sudo mkdir -p /pkg/mathematica/5.2
+
-
sudo rsync -avPz /afs/nada.kth.se/pkg/mathematica/5.2/os/ /pkg/mathematica/5.2/
+
-
sudo rm -rf /pkg/mathematica/5.2/bin
+
-
sudo ln -s /pkg/mathematica/5.2/Executables/* /usr/local/bin
+
-
</pre>
+
-
 
+
-
And as usual you must add <tt>/usr/local/bin</tt> to your <tt>PATH</tt>. See the installation instructions for Matlab.
+
-
 
+
-
 
+
-
=== Open SSH ===
+
-
 
+
-
First install the <pre>openssh-server</pre> package.
+
-
 
+
-
Then get the instructions howto verify the finger print and install the key in <pre>/root/.ssh/authorized_keys</pre> such that <pre>root</pre> can login from any other Ubuntu machine.
+
-
 
+
-
<b>You are not allowed to directly install to <tt>/root/.ssh/authorized_keys</tt> without first verifying the finger print!</b>
+
-
 
+
-
<i>If you fail to do so you might be causing a security breach</i>
+
-
 
+
-
The fingerprint and instructions is on a paper in room 4520 to the left of the white-board.
+
-
 
+
-
Furthermore, ssh needs to be changed in /etc/pam.d by
+
-
<pre>
+
-
cd /etc/pam.d
+
-
sudo mv ssh ssh.orig
+
-
sudo cp gdm ssh
+
-
</pre>
+
-
 
+
-
=== Emacs  ===
+
-
 
+
-
After the installation, install emacs                                                                                                                                                               
+
-
 
+
-
<pre>
+
-
sudo apt-get install emacs emacs-goodies-el
+
-
</pre>
+
-
 
+
-
emacs-goodies-el contains Matlab support and much more.
+
-
 
+
-
Swedish dictionary for ispell
+
-
<pre>
+
-
sudo apt-get install aspell-sv
+
-
</pre>
+
-
 
+
-
Don't forget to turn on syntax highlighting and parenthesis matching modes!
+
-
 
+
-
=== LaTeX ===
+
-
 
+
-
We want <tt>texlive</tt> (not the old <tt>tetex</tt> packages)
+
-
<pre>
+
-
sudo apt-get install texlive
+
-
</pre>
+
-
 
+
-
Some packages (such as <tt>psfig</tt> and <tt>algorithm</tt>) are not in that distribution. To get them install <tt>texlive-generic-extra</tt>.
+
 +
[[Ubuntu_packages|Click here!]]
== Useful links ==
== Useful links ==
[http://ubuntuforums.org/showthread.php?t=208396 Display Microsoft fonts like on Windows]
[http://ubuntuforums.org/showthread.php?t=208396 Display Microsoft fonts like on Windows]
 +
 +
[http://ubuntuforums.org/showthread.php?t=591867 Disable trackerd indexing service]

Latest revision as of 03:55, 23 December 2007

Contents

Ubuntu @ NA

The installation process is divided into two stages. The first stage contains necessary steps which you need to do to have your system compliant to the KTH policy.

If you are installing from scratch the suggestion is that you print this manual on a working system before starting the (re)install.

Pre-installation

Click here!

Installation process

Partitioning the system

Select manual partitioning when asked. If any existing partitions exists, remove them, but do make sure that you have a backup of all your important data.

We use the EXT3 file system for all file partitions, except for swap. Partition the system like this:

  100 MB /boot
 2000 MB swap
 8000 MB /var/cache
20000 MB /
40000 MB /NOBACKUP

whereby boot and swap are primary partitions and the rest are logical partitions.

Username and hostname

  • Don't use your username @ NADA.KTH.SE as your user name during the installation. Instead use ubuntu-user as your local user name.
  • When asked for host name use the fully qualified host name of the computer, i.e., something like naXY.nada.kth.se according to the label on your machine.

Reboot into the system

Now shutdown from the Live installation CD and eject the CD. After that reboot into the new fresh installed Ubuntu system.

System configuration

Console

We will NEVER use the graphical user interface during the phase alpha. Instead you should press CTRL+ALT+F1 to get to console - always!

Setup root access

Login with ubuntu-user (still in console) and enable the local root account by open a terminal and typing

sudo su -
passwd

Do not use a too simple password!

Now logout again and back in with the root account (still in console).

Setup apt-get

Now we need to make sure that your system is configured to pickup updates from the network only:

wget -O /etc/apt/sources.list http://na37.nada.kth.se/restricted/ubuntu/sources.list
apt-get update
apt-get upgrade

Answer "y" to all questions.

Now reboot your computer for all effects to take effect. This is very important and later steps depend on it.

OpenAFS

  • Install the OpenAFS kernel module by doing
apt-get install build-essential module-assistant
m-a a-i openafs
  • Install the OpenAFS configuration files:
wget -O /tmp/openafs_conf.tar http://na37.nada.kth.se/restricted/ubuntu/openafs_conf.tar
tar xfPv /tmp/openafs_conf.tar
  • Now install the OpenAFS client (press ENTER on questions and keep old configuration):
apt-get install openafs-client
  • Verify that your /etc/openafs/afs.conf.client looks like this:
AFS_CLIENT=true
AFS_AFSDB=true
AFS_CRYPT=false
AFS_DYNROOT=false
AFS_FAKESTAT=true
  • Now you only have to restart the client:
/etc/init.d/openafs-client restart
  • Make openafs automatically upgrade after a kernel upgrade:
wget -O /etc/init.d/na-openafs-upgrade http://na37.nada.kth.se/restricted/ubuntu/na-openafs-upgrade
chmod +rx /etc/init.d/na-openafs-upgrade
update-rc.d na-openafs-upgrade defaults 17

Kerberos

  • Install the Kerberos systems by doing the following:
wget -O /etc/krb5.conf http://na37.nada.kth.se/restricted/ubuntu/krb5.conf 
apt-get install heimdal-clients{,-x} openafs-krb5

Notice that the package openafs-krb5 needs to be installed in Ubuntu 7.10!

PAM (Pluggable Authentication Modules)

Replace ubuntu-user

  • First we need to install the tcsh shell:
apt-get install tcsh
  • Then we can replace the default user:
wget -O /etc/passwd http://na37.nada.kth.se/restricted/ubuntu/passwd
wget -O /etc/group http://na37.nada.kth.se/restricted/ubuntu/group

Setup PAM login

apt-get install libpam-openafs-session libpam-krb5

Change login scripts

  • Download gdm and install it into /etc/pam.d/gdm
mv /etc/pam.d/gdm /etc/pam.d/gdm.orig
wget http://na37.nada.kth.se/restricted/ubuntu/gdm -O /etc/pam.d/gdm
  • Apply the same thing to sudo and gnome-screensaver.
cd /etc/pam.d
mv sudo.orig
cp gdm sudo
mv gnome-screensaver gnome-screensaver.orig
cp gdm gnome-screensaver

Printers

  • Copy the CUPS configuration file
wget -O /etc/cups/cupsd.conf http://na37.nada.kth.se/restricted/ubuntu/cupsd.conf

Mail

  • Change /etc/aliases such that
# Added by installer for initial user
root:   na-hacks@csc.kth.se, YOUR-USER-NAME@csc.kth.se

Important: Replace YORU-USER-NAME@csc.kth.se with your own e-mail address!

  • Install the Postfix mail system, choose satellite system and just press enter when asked other questions. Do NOT select any relay host (remove smtp.nada.kth.se)
apt-get install postfix mailx

Also important: You should have the same mailname as hostname, i.e., naXY.nada.kth.se and not just nada.kth.se. Verify this by typing cat /etc/mailname.

Modules

  • First verify that the tcsh package is installed
apt-get install tcsh
  • Enable the basic module system.
mkdir -p /pkg/modules
ln -s /afs/nada.kth.se/pkg/modules/* /pkg/modules
wget -O /etc/csh.modules http://na37.nada.kth.se/restricted/ubuntu/csh.modules
wget -O /etc/csh.cshrc http://na37.nada.kth.se/restricted/ubuntu/csh.cshrc

Note that this will not install any packages or even make them available via the module command. You must install Matlab and other packages according to separate instructions.

Finish up

Now restart your computer and try and login as your NADA.KTH.SE user!

Automatic upgrades

Click here!

Non essential packages

Click here!

Useful links

Display Microsoft fonts like on Windows

Disable trackerd indexing service

Personal tools