I have Ubuntu 7.10 (64bit) now running on my desktop computer at the University (see
previous posting). I first tried to set up openMPI with the package that is in the Ubuntu repositories (
openmpi-bin).
That didn't work. It installs but then mpicc and mpirun just don't do anything, they seem to be empty. So I removed it and did a manual install which is straightforward.
- Download the tar.gz from here.
- Unpack and untar it. Then simply proceed as in the INSTALL file for "User build". I installed in /opt/openmpi, so I run
cd /pathtosource/openmpi-1.2.5
sudo ./configure --prefix /opt/openmpi
sudo make all install
- add system links to mpicc and mpirun:
sudo ln -s /opt/openmpi/bin/mpicc /usr/bin/mpicc
sudo ln -s /opt/openmpi/bin/mpirun /usr/bin/mpirun
Piece of cake. On my old system I used
MPICH and I must say, the one good thing about openMPI I realized so far is: error messages are much clearer and much more useful. And that's worth a kingdom in a parallel code! And openMPI properly cleans up all processes when you manually kill a job. So you don't have to do this hand.
Ubuntu 7.10 64bit
Here is one more of these completely boring nerdy memos...
I had openSUSE 10.2 running on my Desktop, I was never really happy with it and I never got the sound chip running. So I decided to switch to Ubuntu Gutsy Gibbon. This turned out to be another nightmare. After several failures I finally have it running now. I must say, running Ubuntu on a NIS client is ridiculousely complicated.
But when I did it for the third time, even this became quite easy. So here is what you have to do:
- Boot from the live CD and click on install
- choose the manual mode for the partitioner, setup the mount points etc, as you want them, I mount the local disk on /local.
- local user:
you have to set up a local user during the installation, this one will automatically be given sudo-privileges. Choose a user name, which does not exist as a NIS account.
- After the installation, reboot, then
- install your favourite editor, it's probably not there yet...
- The home directory of the local account is mounted in /home. I wanted this as a mount point for the NIS accounts, and I already had a local user on the Suse installation so I changed the home directory of the local user to this old one in /local.
- Logout and login again, you are now in your new home directory.
- Do an update, but be careful! In my case (for 64bit version) there was a kernel update which seems to be incompatible with my motherboard (a Foxconn board, can't be recommended...) Gutsy runs 2.2.22-14.46 from the CD. The update was to 2.2.22-14.47. I believe, the update overwrites the original kernel, at least there was no choice which kernel to boot in grub. I had to reboot from CD and start the installation once more. This time I skipped the kernel update. But of course it's generally a good idea to make an update after installation, there might be a whole lot of security updates.
- Install all shells you can think of (tcsh, ksh, csh...). Ubuntu does not come with so many of them and there are problems loggin into a NIS account later on, if the account uses a shell that is not installed on the system. Especially tcsh is often set as the standard login shell.
Btw, in Ubuntu /bin/sh points to dash not to bash. I don't know why. I changed it.
- Set up the network connection:
Go to
system > administration > network:
select wired connection and set the
all the properties, IP, DNS, subnet mask etc. if you are not using dhcp.
- NIS:
First you have to install a bunch of things:
sudo apt-get install ssh
sudo apt-get install portmap
sudo apt-get install nis
sudo apt-get install autofs
sudo apt-get install nfs-common
Now edit /etc/passwd
add
+::::::
at the end of the file (6 colons).
edit /etc/group add
+:::
at the end of the file
(3 colons).
Then
edit /etc/shadow as well and add
+::::::::
at the end (8 colons).
Edit /etc/yp.conf. Add
ypserver IP_OF_NISSERVER
Set up the automounter.
Add
* IP_OF_NISSERVER:/path/to/home/dirs&
to
/etc/auto.home and write
/home /etc/auto.home
into the file /etc/auto.master.
Finally, you have to edit
/etc/nsswitch.conf. This file is used by the libc, so it can potentially be devastating if you add something there which is incompatible with your libc version. Puuh, I have had it all... Add the line
automount nis files
Now restart autofs, nis and sshd.
sudo /etc/init.d/autofs restart
sudo /etc/init.d/nis restart
sudo /etc/init.d/ssh restart
With this I could login to my NIS account. Maybe you have to reboot at this point to get it going.
- CUPS:
simply add the line
ServerName your_cups_server:631
or whatever port you use for cups.
to /etc/cups/client.conf
then run
sudo /etc/init.d/cupssys restart
make
The following message from
make
make: *** No rule to make target `/usr/include/gsl/gsl_rng.h', needed by `XXX.d'. Stop.
where there is no such rule in the Makefile, because of course you do not define rules for making header files.
It simply means that the header (in this case the gsl-library) is missing.
To me
make really is one of the most ununderstandable but useful things there are.
Strichmännchen
Musings of a bored physicist who has loads of very impartant things to do: That's a
little MATLAB stickmann.
Surprise!
I like to get presents, even better when they are very unexpected. It's not that it is unexpected to get presents at this time of the year there is Christmas and then there is my birthday. But it is unexpected to get such presents! Watch it.
When I arrived back home from my Christmas holiday I had a little parcel from the Danish police. It contained a wallet, which is definitely not my wallet because I never missed one in Denmark. Nevertheless in the wallet was my sygesikrings kort with my last Danish address on it and my CPR number. That is how the police decided to send it to me. For the rest there is a photograph of a young polish lady, a couple of credit cards from a polish bank and some papers which look like public transport tickets from Lodz. The name of the guy on the credit cards is unknown at
NBI.
Today I collected two parcels from the post office. Both have been sent to me from persons I don't know. One contains a passe vite (which I really wanted) the other one
two rolling pins (something I used to substitute with a wine bottle, ever since I threw away the old non-functional rolling pin I had) and a quite ugly butter box made of plastic. As for these two parcels, I suspect
somebody to have had purchased them on ebay and had them sent to me.
This entry from some weeks ago even explains the puzzle how that person could actually know what a passe-vite is.