The new LabraNet info video has been added. This video can be used as a substitute to the live version, as it may sometimes be difficult to match schedules and also because of social distancing.
The video is accessible from JAMK Panopto at https://panopto.jamk.fi/Panopto/Pages/Viewer.aspx?id=b41acb3a-b88f-498d-9ab6-ace200c9c1be
Some labs/classroom work require valid DNS names, for example, for certificates to be valid. Internally, all LabraNet users are allowed to use a domain .zz (for example, A1234.zz if your student-id is A1234). Under this domain, one can add as many hosts and DNS records as necessary.
The personal domains under .zz top level domain are resolvable only locally from classrooms and personal workstations in LabraNet. The domain/subdomains are also not DNSSEC signed.
To handle your records, log in to zz.labranet.jamk.fi using your LabraNet credentials.
If you have forgotten your LabraNet password or otherwise want to change it remotely, you can use the LabraNet Self-service portal when the following applies:
The Self-service portal can be found at:
By filling in your LabraNet username and reCAPTCHA, you can generate a password reset link which will be sent to your JAMK email account.
Opening the link from your email account will lead to a form with which the password change can be completed. Read the password requirements and fill in your new password twice and complete the reCAPTCHA. Click Submit to complete the password change.
If the password reset fails or you have trouble with the service otherwise, please contact LabraNet helpdesk.
GitLab is a web-based Git repository manager with additional features, such as wiki, issue-tracking and CI/CD pipelines. LabraNet Gitlab can be used by students to host their study related software development projects.
Users can use their LabraNet credentials to sign into the GitLab. If you don’t have a LabraNet account, see FAQ for more information. On the front page the LabraNet sign in-option has to be selected.
Individual projects are not backed up, so users are responsible to keep backup copies of their projects. Repository contents can be backed up cloning the repository. The entire project, including wiki, issues and settings can also be exported.
You can access your home folder and other resources from your home network with VPN. Instructions for connecting to the LabraNet VPN and mounting your home folder can be found in the LabraNet Remote Access Guide
If you encounter any problems with VPN connection here are few remedies to known problems:
– DNS problems are often solved by flushing the DNS cache (in windows the command is “ipconfig /flushdns”, in linux you need to restart nscd daemon with command “/etc/init.d/nscd restart”)
– Connectivity problems are caused by not receiving proper routes from VPN connection, DHCP clearance is often needed to get VPN routes. In windows commands are: “ipconfig /release” and after that “ipconfig /renew”. In linux “dhclient -r” will renew DHCP bindings.
– Check whether the VPN tunnel is in full or split mode (See Advanced Routing in the Guide). Sometimes full tunnel mode works better
– In newer Mac OS X, check the Service order in the Network settings page, and the scutil –dns command output. Wrong service order will make the system use your default DNS servers, and the system cannot resolve LabraNet names.
– If the Windows 10 app freezes and doesn’t show connection options you can complete or close the connection using the following command line commands:
– To make the connection: rasdial.exe “connection name” (add username and password if you haven’t saved them in connection options: rasdial.exe “connection name” “username” “password”)
– To close the connection: rasdial.exe “connection name” /disconnect
Windows 10 adds the possibility to auto trigger VPN connections. This following guide shows how you can add applications that automatically trigger a VPN connection when launched. The example shows a custom application but you can use whatever application suits you best, for example MySQL Workbench.
Open a new PowerShell window. Run it as administrator if you want to save the shortcut to public desktop later as per these instructions.
Install PyInstaller for building an executable out of chosen Python-script
python -m pip install pyinstaller
Write your connection script. Here the input() function is chosen so that the script finishes and executable closes after enter is pressed
Write-Output ‘input(“Press enter to disconnect”)’ | Out-File -FilePath vpn.py -Encoding utf8
Build the executable.
python -m PyInstaller -F vpn.py
Move the created executable to current directory.
Move-Item .\dist\vpn.exe .
Configure vpn triggering. Split tunneling is required for triggering to work. IdleDisconnectSeconds define how long the connection stays on after the executable is closed.
$vpn = (Get-VpnConnection).Name
$app = “$((Get-Location).Path)\vpn.exe”
Set-VpnConnection -Name $vpn -SplitTunneling $True -IdleDisconnectSeconds 5
Add-VpnConnectionTriggerApplication -ConnectionName $vpn -ApplicationID $app
Create a shortcut to public desktop. If you did not lauch PowerShell as admin, either escalate privileges or change the $ShortcutLocation path below.
$ShortcutLocation = “[Environment]::GetFolderPath(‘CommonDesktopDirectory’)\Connect to LabraNet.lnk”
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutLocation)
$Shortcut.TargetPath = $app
Check the connect automatically checkbox in vpn settings.
Connecting via auto trigger should function similarly to video below.
Some courses and theses are done in virtualized environments, such as the VMware vSphere Hypervisor (ESXi). SpiderNet Center is a clustered environment for handling lab virtual machines. SpiderNet_Virtual_Machines includes some common help and guidelines for using such environments and working with them.
If you bring us virtual machines for use in labs or the vCloud Director environment, the images should be VMware vSphere 5.0 compatible (VM version 8) and in OVF/OVA format as plain VMX/VMDK images can be troublesome. If using software other than VMware to create the images, please remove USB/Audio devices and use SCSI disks instead of SATA/IDE. More information about format conversion in the guide above.
For connecting to Student server you can use what ever SSH client, for example PuTTY.
First enter the address to Student server which is student.labranet.jamk.fi (see figure 1).
Then PuTTY asks login ID and password. Use your LabraNet account’s ID and password (see figure 2). Capitalize the first letter of your student id when logging to student via SSH.
After successful login you are in Student server (see figure 3).
LabraNet users can use WinSCP SFTP client to remote access their LabraNet home folder. The WinSCP client can freely downloaded from http://winscp.net/
Download and install the client. Choose Start -> Programs -> WinSCP -> WinSCP
Once the program starts you need to enter the address to Student server which is student.labranet.jamk.fi.
After that you need to enter your LabraNet UserID and password. Port number is 22 (see figure 4).
Your local files are in the left window of the client and the remote files (your home folder on Student server) are in the right (see figure 5).
You can transfer files by dragging them from window to another.
What is student.labranet.jamk.fi server?
What it isn’t
What does student server offer for you?
How you can access student.labranet.jamk.fi?
See the SSH to Student Server – instructions.
LabraNet provides virtual machine hosting, such as development or production servers for different projects. Project servers can be used internally as a project environment, software development, etc. and can be used from local workstations or through LabraNet VPN. For customer-related projects we can offer external hosting with public internet access also, but as we have limited number of public IPv4 addresses, we can currently issue only a handful of publicly visible servers. There must be a real reason for public server use, if the virtual machine is to be used primarily by students and staff it will be internal server only.
When requesting a virtual server, please use our Helpdesk to create a ticket, and fill the following information:
Primarily supported operating systems: CentOS 7, Ubuntu Server (18.04), Windows Server 2008R2, Windows 7. Other OS can be requested but a good reason must be provided.
We will contact people when the use date is exceeded about whether the vm is still needed or not. Long-term usage must be discussed with administration on case by case basis.
After the VM is created, the appointed administrative person will be responsible for updates and other security of the server. If a default password is provided, it must be immediately changed to more secure one. All LabraNet Usage Policy rules apply to virtual machines also. LabraNet administration reserve the right to access and manage the virtual machine if rules are broken and also in case of severe problems that may affect the security or functionality of other systems.
By default, access to vms will be restricted to most used protocols only (http, https). Management is handled by SSH or RDP and only from local network. Other protocols/applications can be requested when needed.
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:
When you are asked for credentials, enter your username as email@example.com (for example, firstname.lastname@example.org) 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:
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 email@example.com:/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.
Every LabraNet user has public_html folder under his/her home folder.
To publish websites, first you have to modify some rights of your homefolder.
[userid@student userid]$ chmod 701 /home/userid
This command gives only the execute permission to others.
[userid@student userid]$ chmod 705 /home/userid/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 /home/userid/public_html
With the above commands you allow others to read and execute your public_html folder.
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/*
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:
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.
We also have an older MySQL server at mysql.labranet.jamk.fi
It’s deprecated and will be phased out probably at the end of the 2020-2021 school year.
NOTE! As our MySQL server is of the oldish kind, new MySQL Workbench versions are incompatible with it (bad hanshake errors). If you wish to use MySQL Workbench, version 6.X should work.
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
Institute of Information Technology participates in several programs which offer software to students and staff either for a nominal fee or completely free of charge. Software is can be used for educational purposes, commercial application and production use is prohibited. Only currently enrolled Information Technology students partaking in degree-oriented studies and JAMK IT staff are eligible to download software, distribution to third parties is prohibited. Software is limited to one product key or activation at a time, other software-specific limitations may apply. Current programs include:
Software is available for download at JAMK IT ELMS Webstore and Microsoft Azure Dev Tools for Teaching, which are managed by Kivuto and MS Azure Team respectively. By using the webstore and downloading software provided, you must agree to licenses involved in the programs. License and subscription agreements can be found in Microsoft Azure Dev Tools for Teaching License Agreement and VMware Academic Program EULA. More information about each software is provided in the webstore.
© LabraNet 2018 | JAMK University of Applied Sciences