Author Archives: wpadmin

Remote home-folder

11.09.2018 - 12:55

Your home-folder can be accessed from outside by using VPN connection. Accessing via SSH tunnel is not supported anymore. Connect to LabraNet by VPN and type the following (Windows).
win+r or Start – Run
The path to your LabraNet home folder is:
\\storage.labranet.jamk.fi\homes\userid
When you are asked for credentials, enter your username as userid@labranet.jamk.fi (for example, c5431@labranet.jamk.fi) and use your LabraNet account password.
You can also use Windows tools to permanently map your home-folder as a network drive. Please note that the mapped drive will be accessible only when the VPN connection is active.

It is also possible to mount your Student-server home folder with the following path, credentials are the same as above:
\\student.labranet.jamk.fi\userid

Note! Mac OS Sierra users might have issues connecting to Student-server via SMB and CIFS. As a workaround, LabraNet administration recommends using Fuse for macOS and SSHFS both available here.
These enable you to mount your Student-server home folder via SSH with the command:
sshfs -o option1,option2 userid@student.labranet.jamk.fi:/home/userid /mountpoint

Additional note! After the rebase to Centos 8, some older clients may no longer be able to connect. Remember that you can always use an SFTP client like WinSCP to access your Student-server home folder, and that it also works over the public internet, not just over VPN.

public_html and PHP

11.09.2018 - 12:54

Note! LabraNet usename corresponds to userid with your LabraNet username when running the commands below.

Every LabraNet user has public_html folder under their home folder.

To publish websites, first you have to modify some rights of your homefolder.

[userid@student userid]$ chmod 701 ~

This command gives only the execute permission to others.

[userid@student userid]$ chmod 705 ~/public_html

Note! Remember to apply permissions recursively if you have a nested folder structure under your public_html folder.

[userid@student userid]$ chmod -R 705 ~/public_html

With the above commands you allow others to read and execute your public_html folder.

[userid@student userid]$ touch ~/public_html/index.html

Note! Unless run chmod recursively, permissions do not apply to .htaccess. This file needs to be readable. To fix this, allow read permission to others.

[userid@student userid]$ chmod 604 ~/public_html/.htaccess

Now you should see an empty page @ http://student.labranet.jamk.fi/~userid

For PHP functionality check instructions in .htaccess -file under public_html. More information can be found in instructions-directory in your home folder.

500 Internal Server Error

1. Check that your scripts syntax is right. Run “php -l my_script.php” on command line (where my_script is your php file).

2. Check that your public_html folder has correct permissions (see above).

3. SELinux context might be wrong. Restore the SELinux context by issuing command:

chcon -R -v -t httpd_user_content_t ~/public_html/*

Print quota

11.09.2018 - 12:54

LabraNet shared printers utilize a printing quota. Quota is personal and limited to 300 pages per academic year. On LabraNet workstations you can check the current quota from a tray application:

Databases: MariaDB and PostgreSQL

11.09.2018 - 12:54

Our MariaDB 10.5 server is mariadb.labranet.jamk.fi

Students can create their own user for the server by going to https://mariadb.labranet.jamk.fi (only available from LabraNet workstations or over VPN), authenticating with their LabraNet login, and pushing a button. The page then tells you your new mysql password, and you can also reset your password from there if you’ve forgotten it.

The server is accessible from student.labranet.jamk.fi, and from LabraNet workstations and over VPN. We’re open to suggestions for graphical tools to recommend, but HeidiSQL and DBeaver look pretty good and are available on LabraNet workstations.

The server supports TLS (for authenticating the server only), but does not force it.

Our PostgreSQL 12.4 server is postgres.labranet.jamk.fi

Same operating principles as the mariadb server above.

External Access

11.09.2018 - 12:53

Connections from LabraNet networks to Internet are generally restricted to standard TCP/UDP port numbers used by corresponding applications. This means that if you are running for example a web server somewhere on the Internet that listens to some non-standard HTTP port number (eg. 5000), the connection will be denied.

Instructions on how to solve this can be found on LabraNet_External_Access guide