First copy your Stata17 source file in the Downloads folder of your PC.
If the file is in .zip format, unzip to use it. Confirm that the .tar.gz extension file (Linux supported installation file) is located in the Downloads folder.
I am assuming that you have the licence information ready in your hand during the following installation process:
$ cd Downloads
$ mkdir statainstall
$ tar -xvzf Stata17Linux64.tar.gz -C statainstall
$ sudo mkdir /usr/local/Stata17
$ cd /usr/local/Stata17
$ sudo ~/Downloads/statainstall/install
Here, you will start the installation process and Stata17 will provide you the steps to complete. Follow these steps one by one and complete until the end.
$ sudo ./stinit
Again, Stata17 will ask you for several conformations and you need to respond properly.
$ ./xstata
gtk2
$ sudo apt install gtk2 # For Ubuntu
$ sudo dnf install gtk2 # For Fedora
Even after successfully installing and running Stata17, in Ubuntu/Fedora it won’t be available as an application in the dash, and it won’t have a proper icon in the application launcher.
To complete this step, you need a text editor. In this tutorial,
I am using gedit
which is the official text editor of the
GNOME desktop environment. If your PC don’t contain it, you can install
easily by using terminal.
$ sudo apt install -y gedit # For Ubuntu
$ sudo dnf install -y gedit # For Fedora
$ sudo gedit /usr/share/applications/Stata17.desktop
[Desktop Entry]
Version=17
Terminal=false
Icon=/usr/local/Stata17/stata17.png
Type=Application
Categories=Education;Scientific;
Exec=/usr/local/Stata17/xstata
Name=Stata/BE 17
Comment=Perform statistical analyses using Stata.
StartupNotify=true
MimeType=application/x-stata-dta;application/x-stata-do;application/x-stata-smcl;application/x-stata-stpr;application/x-stata-gph;application/x-stata-stsem;
Actions=doedit;use;view;graphuse;projmanag;semopen;
$ sudo chmod -R 777 '/usr/local/Stata17'
a. Open Stata
b. Go to Preferences
c. General Preferences
d. Internet
e. add the proxy information. For KUT [proxy.noc.kochi-tech.ac.jp] and port [3128]
f. Go to Help
g. Update
Updated on: 2024-10-17