ssh -X fedorov@lifa.phys.au.dk
where -X option is needed if you plan to use X-windows programs. After typing
your password do
mkdir ~/public_html
mkdir ~/public_html/numeric
where ~/
is an abbreviation for you home
directory. Now the URL http://www.phys.au.dk/~fedorov
points to your ~/public_html/
directory, while
http://www.phys.au.dk/~fedorov/numeric
points to
your"~/public_html/numeric" directory which should then be the place
for your solutions to the exercises.
chmod -R go+xr ~/public_html
to allow everybody to see your files in this directory. You might need
to issue this command again after you have created some new files.
mkdir ~/public_html/numeric/hello
cd ~/public_html/numeric/hello
hello.c
with the content
#include <stdio.h>
int main() {
printf("Hello, world\n");
return 0;
}
makefile
with the content
hello.txt: hello # hello.txt is the default target
./hello > hello.txt # run hello and redirect stdout into hello.txt
cat hello.txt # send the content of hello.txt to stdout
hello: hello.o
cc hello.o -o hello
clean:
rm -f hello hello.o hello.txt
Note that the indented lines start with a tab-character,
not with spaces.
make
you should see
the message on your screen if everything goes right (it never does the
first time, of course...).