Stata Installation
Create a folder for your Stata installation file:
mkdir /home/ubuntu/stata_sourceDownload the Stata tar file for Linux.
Upload the tar file to the /home/ubuntu/stata_source folder just created (using BitVise's SFTP interface for example). You may need to give writing priviledges to the folder you just created by
sudo chmod -R a+rwx /home/ubuntu/stata_sourcesudo -iUnzip the tar file in the /tmp/statafiles folder:
cd /tmp/
mkdir statafiles
cd statafiles
tar -zxf /home/ubuntu/stata_source/Stata16Linux64.tar.gzCreate /usr/local/stata16 directory for installing Stata for all users:
cd /usr/local
mkdir stata16Install Stata. Enter licensing information when prompted:
cd /usr/local/stata16
/tmp/statafiles/installAfter installation, you will be prompted to initialize Stata:
./stinitUbuntu users will need an additional package for Stata to work:
apt-get update
echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" > /etc/apt/sources.list.d/ubuntu-focal-sources.list
apt-get install libncurses5Edit the Ubuntu system paths to include Stata for all users. Open the profile in nano:
nano /etc/profileType the following into the bottom of the document as depicted below.
export PATH="/usr/local/stata16:$PATH"
Use CTRL+O then enter to overwrite the document and CTRL+X to exit.
Refresh the paths to include Stata by typing:
source /etc/profileLast updated