adding permanent enviroment variable for all users

Issues related to applications and software problems
Post Reply
robertw
Posts: 174
Joined: 2012/04/25 13:26:59

adding permanent enviroment variable for all users

Post by robertw » 2018/05/17 20:45:30

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

User avatar
TrevorH
Forum Moderator
Posts: 23634
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: adding permanent enviroment variable for all users

Post by TrevorH » 2018/05/17 20:49:34

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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

pjsr2
Posts: 343
Joined: 2014/03/27 20:11:07

Re: adding permanent enviroment variable for all users

Post by pjsr2 » 2018/05/17 21:40:35

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.

tunk
Posts: 406
Joined: 2017/02/22 15:08:17

Re: adding permanent enviroment variable for all users

Post by tunk » 2018/05/17 22:51:49

You also need to open the firewall ports on the client.
You can use nmap to check if they are reachable.

Post Reply