Forum Discussion
Altera_Forum
Honored Contributor
8 years agoAre there multiple users who use the same Linux system for their work, aka, multiple user accounts who can run the Quartus tools and other EDA tools?
If so, you can change the temporary setting to your local home directory [/home/$USER/tmp] This way which ever tool or program you run will use the /tmp folder specified by you. ** But a word of caution: Make sure your user account has ample disk space in the Linux server/system before you set this up, as this change will effect all of the software / programs you run from your user account. You will need to login to your Unix/Linux account and then do the following steps to change the temporary disk space folder for your user account: 1. Login to your user account. 2. Open a Linux Terminal prompt. 3. Edit the following file using your favorite editor (Vi/gVim/emacs/etc) :
edit /etc/profile
OR
gvim /etc/profile
4. Add the following lines to the end of the /etc/profile file:
if ]; then
TMPDIR=/home/$USER/tmp
else
# You may wish to remove this line, it is there in case
# a user has put a file 'tmp' in there directory or a
rm -rf /home/$USER/tmp 2> /dev/null
mkdir -p /home/$USER/tmp
TMPDIR=$(mktemp -d /home/$USER/tmp/XXXX)
fi
TMP=$TMPDIR
TEMP=$TMPDIR
export TMPDIR TMP TEMP
5. Save and close the editor. 6. Now close this terminal and open another terminal for the new environment variables to take effect. Start Quartus tool and check if the compile goes through without any errors. There is one cavet to this though: You will need to clear this temporary folder before you logout of your session to prevent the folder being full and programs crashing. This way you will have modified the temporary folder to your local user home space and can delete the contents when you are done. Make sure to close all open programs before you delete the contents of the /tmp folder. Let me know if this helped! -Abr