This howto describes the installation of MemorySurfer with Apache under Debian 10.

If you have Git installed cloning the repository is very convenient (and provides the most recent version) (otherwise look here for the download instructions).

 $ git clone Cloning into 'MemorySurfer'...
remote: Enumerating objects: 811, done.
remote: Counting objects: 100% (173/173), done.
remote: Compressing objects: 100% (173/173), done.
remote: Total 811 (delta 113), reused 0 (delta 0), pack-reused 638
Receiving objects: 100% (811/811), 582.55 KiB | 6.07 MiB/s, done.
Resolving deltas: 100% (518/518), done.

Now change into the 'Debian' folder

[user@linux Downloads]$ cd MemorySurfer/Debian/

Eventually need to install make and gcc.

[user@linux ~/Downloads/MemorySurfer/Debian]$ sudo apt-get update [user@linux ~/Downloads/MemorySurfer/Debian]$ sudo apt-get install make [user@linux ~/Downloads/MemorySurfer/Debian]$ sudo apt-get install gcc

Then compile the program

[user@linux ~/Downloads/MemorySurfer/Debian]$ make
gcc -Wall -g -O0 -c ../memorysurfer.c
gcc -Wall -g -O0 -c ../imf/indexedmemoryfile.c
gcc -Wall -g -O0 -c ../imf/sha1.c
gcc -Wall -g -O0 -o memorysurfer.cgi memorysurfer.o indexedmemoryfile.o sha1.o -lm
[user@linux ~/Downloads/MemorySurfer/Debian]$ ls -l
total 448
-rw-rw-r--. 1 user user 36128 May 21 19:25 indexedmemoryfile.o
-rw-r--r--. 1 user user 532 May 18 22:49 makefile
-rwxrwxr-x. 1 user user 189456 May 21 19:25 memorysurfer.cgi
-rw-rw-r--. 1 user user 209400 May 21 19:23 memorysurfer.o
-rw-rw-r--. 1 user user 9312 May 21 19:25 sha1.o

now installing the web server

[user@linux ~/Downloads/MemorySurfer/Debian]$ sudo apt-get install apache2

copy the executable into cgi-bin/

[user@linux ~/Downloads/MemorySurfer/Debian]$ sudo cp memorysurfer.cgi /usr/lib/cgi-bin/

enable the CGI modul

[user@linux ~/Downloads/MemorySurfer/Debian]$ sudo a2enmod cgi [user@linux ~/Downloads/MemorySurfer/Debian]$ systemctl restart apache2

copy the favicon and the .css file into the html/ folder

[user@linux ~/Downloads/MemorySurfer/Debian]$ cd .. [user@linux ~/Downloads/MemorySurfer]$ sudo cp favicon.ico ms.css ms.js /var/www/html/

now create the folder were the .imsf files are stored

[user@linux ~/Downloads/MemorySurfer]$ cd /var/www/ [user@linux www]$ sudo mkdir memorysurfer [user@linux www]$ sudo chown www-data:www-data memorysurfer/

now the server should work - enter the following in the address bar of your browser

Jun 07, 2020