# How to setup dynamic hostname?

I am trying to install Matlab on my fedora 22. The matlab-installation is not a big deal, but the case is, that I have to install it from a server at school. The school has provided me with a license-file, and I also has the key. To complete the installation, I have to be connected to the VPN for my school.

The problem is that matlab can't finde the right host, even though I am connected directly to the schools VPN or Wifi.

Running $uname -n gives me localhost.localdomain When I try to start the license manager, I get this: Checking license file for local hostname and local hostid . . . Error: Your host does not match any SERVER line in your license file. Your local lmhostid(s) are: 681729a05df2 28d2441cf2fc Your hostname is: localhost.localdomain The SERVER line(s) are: ----------------------------------------------- SERVER donau.hiof.no 27000 ----------------------------------------------- Please stop, fix the problem, and try again . . . Continue to start up license manager? y/[n])  How can I make my hostname change automaticly from one network to the next? edit retag close merge delete ## Comments You can try hostnamectl set-hostname --transient$some-hostname - this would have the same effect as if your school's dhcp server provided a hostname, which meets your expectation of the hostname changing with the network. However, matlab might not be looking there, so you might have to change your hostname globally (without --transient) for it to work.

( 2015-10-18 14:02:13 -0500 )edit

I will try that out. But another problem have, is that I don't know how to enter a location on the server. In windows I use the fiie explorer, but how do I enter this location in fedora, or any linux system? The location is: \donau.hiof.no\CD_image

( 2015-10-20 03:26:22 -0500 )edit

You should be able to use the equivalent file browser on Fedora to access files; unless you are doing something unusual it will be very straightforward. That said, please open a different question for different issues.

( 2015-10-20 23:49:57 -0500 )edit