This howto describes the installation of MemorySurfer with Apache under Fedora 32 (previous versions [of Fedora] differ quite a bit).


After downloading the .tar.xz file open a terminal window and change into the directory.

[user@linux ~]$ cd Downloads/

Then check the file size.

[user@linux Downloads]$ ls -l
total 28
-rw-r--r--. 1 user user 41736 May 21 18:34 MemorySurfer.tar.xz

Check the SHA256.

[user@linux Downloads]$ sha256sum MemorySurfer.tar.xz
078c35f969770e2f74f8e91bea3b13901b4116076cb9a34b13f6b72135890275 MemorySurfer.tar.xz

Decompressing is probably better done in Files. But here is how to do it in the terminal:

[user@linux Downloads]$ xz -d MemorySurfer.tar.xz
[user@linux Downloads]$ ls -l
total 78528
-rw-r--r--. 1 user user 293376 May 21 19:08 MemorySurfer.tar
[use@linux Downloads]$ tar xf MemorySurfer.tar
[user@linux Downloads]$ ls -l
total 78524
drwxr-xr-x. 6 user user 4096 May 21 13:54 MemorySurfer
-rw-r--r--. 1 user user 293376 May 21 19:08 MemorySurfer.tar

Now change into the 'Fedora' folder

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

Then compile the program

[user@linux Fedora]$ make
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 Fedora]$ 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 Fedora]$ sudo dnf install httpd

copy the executable into cgi-bin/

[user@linux Fedora]$ sudo cp memorysurfer.cgi /var/www/cgi-bin/

copy the .css file into the html/ folder

[user@linux Fedora]$ cd .. [user@linux MemorySurfer]$ sudo cp ms.css /var/www/html/

now create the folder were the .imsf files are stored

[user@linux MemorySurfer]$ cd /var/www/ [user@linux www]$ sudo mkdir memorysurfer [user@linux www]$ sudo chown apache:apache memorysurfer

make the directory a readable and writable for Apache.

[user@linux www]$ sudo chcon -t httpd_sys_rw_content_t memorysurfer [user@linux www]$ ls -Z
system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bin
system_u:object_r:httpd_sys_content_t:s0 html
unconfined_u:object_r:httpd_sys_rw_content_t:s0 memorysurfer
21. Mai 2020