Page 1 of 1

adding permanent enviroment variable for all users

Posted: 2018/05/17 20:45:30
by robertw
hi all,

i want to add this enviroment variable to all users -

https://knowledge.autodesk.com/support/ ... erver.html

so my question is how do i add it to all users not just for one users home directory as more than one person logs in using different logins/profiles

i have edited the file "/etc/profile" and added this line to the end but doesnt work

"export ADSKFLEX_LICENSE_FILE=@192.168.1.233"

what am i doing wrong, how do i also call it a filename as it says ie .flexlmrc

cheers,

rob

Re: adding permanent enviroment variable for all users

Posted: 2018/05/17 20:49:34
by TrevorH
Do not do this... read the edit underneath: You should create your own files under /etc/profile.d modelled on the existing ones that do the thing most similar to what you need.

Edit: I just read the link and if you look at it again, you will see that it tells you exactly what to do. And it does not involve editing any /etc/profile* file at all. They tell you to create a file in the user's home directory called .flexlmrc and to put that entry inside it. I do not think it is a standard environment variable, this is something peculiar to FlexLM and you need to do exactly what it says.

Re: adding permanent enviroment variable for all users

Posted: 2018/05/17 21:40:35
by pjsr2
Also check the port number that is used on the license server. See https://knowledge.autodesk.com/support/ ... lient.html. When a non-default port number is used, add it before the @ in the value of ADSKFLEX_LICENSE_FILE.

Make sure the firewall on the license server allows traffic to the above port. Some clients that use flex licenses (not sure about AutoDesk as I don't have that) require to be able to ping the flexlm license server, so you should allow ICMP access in the firewall of the license server as well.

Re: adding permanent enviroment variable for all users

Posted: 2018/05/17 22:51:49
by tunk
You also need to open the firewall ports on the client.
You can use nmap to check if they are reachable.